Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConfigurationUtils.SetConfigurationSystem Method

Sets the current IInternalConfigSystem to be used by ConfigurationManager.

[Visual Basic]
Public Shared Sub SetConfigurationSystem( _
   ByVal configSystem As IInternalConfigSystem, _
   ByVal enforce As Boolean _
)
[C#]
public static IInternalConfigSystem SetConfigurationSystem(
   IInternalConfigSystem configSystem,
   bool enforce
);

Parameters

configSystem
the configuration system to set
enforce
bypasses the check if the current system has already been initialized

Return Value

the previous config system, if any

Remarks

íf configSystem implements IChainableConfigSystem, this method invokes SetInnerConfigurationSystem on the new configSystem to chain them.
Note, that this method requires reflection on internals of ConfigurationManager

See Also

ConfigurationUtils Class | Spring.Util Namespace