Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ProfileProviderAdapter.Initialize Method

Initializes the provider.

[Visual Basic]
Public Overrides Sub Initialize( _
   ByVal name As String, _
   ByVal config As NameValueCollection _
) _
    Implements IProfileProvider.Initialize
[C#]
public override 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 may be used to override the name being used for looking up an object definition.

Implements

IProfileProvider.Initialize

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

ProfileProviderAdapter Class | Spring.Web.Providers Namespace