Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConfigurationReader.PopulateFromAppConfig Method

Populates the supplied properties with values from a .NET application configuration file.

[Visual Basic]
Public Shared Sub PopulateFromAppConfig( _
   ByVal properties As NameValueCollection, _
   ByVal configSectionName As String, _
   ByVal overrideValues As Boolean _
)
[C#]
public static bool PopulateFromAppConfig(
   NameValueCollection properties,
   string configSectionName,
   bool overrideValues
);

Parameters

properties
The NameValueCollection to add any key-value pairs to.
configSectionName
The configuration section name in the a .NET application configuration file.
overrideValues
If a key already exists, is its value to be appended to the current value or replaced?

Return Value

true if the supplied configSectionName was found.

See Also

ConfigurationReader Class | Spring.Objects.Factory.Config Namespace