Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IProfileProvider.Initialize Method

Initializes the provider.

[Visual Basic]
Public Sub Initialize( _
   ByVal name As String, _
   ByVal config As NameValueCollection _
)
[C#]
void Initialize(
   string name,
   NameValueCollection config
);

Parameters

name
The friendly name of the provider.
config
A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. The providerId attribute is mandatory.

Exceptions

Exception Type Condition
ArgumentNullException The name or config is null.
InvalidOperationException An attempt is made to call Initialize on a provider after the provider has already been initialized.
ArgumentException The name has a length of zero or providerId attribute is not set.

See Also

IProfileProvider Interface | Spring.Web.Providers Namespace