ClientFormsAuthenticationMembershipProvider.Initialize Method (String, NameValueCollection)

 

Initializes the provider.

Namespace:   System.Web.ClientServices.Providers
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public override void Initialize(
	string name,
	NameValueCollection config
)

Parameters

name
Type: System.String

The friendly name of the provider.

config
Type: System.Collections.Specialized.NameValueCollection

A collection of name/value pairs representing the provider-specific attributes specified in the configuration for this provider.

Exception Condition
ArgumentNullException

name is null.

-or-

config is null.

ArgumentException

name is empty.

-or-

config contains an unrecognized value. For more information, see the Remarks section.

InvalidOperationException

This ClientFormsAuthenticationMembershipProvider has already been initialized.

The ASP.NET extensibility model calls the Initialize method to initialize the ClientFormsAuthenticationMembershipProvider using information in your application configuration file. This method recognizes the following authentication service configuration attributes:

  • name

  • description

  • savePasswordHashLocally

  • credentialsProvider

  • connectionStringName

  • serviceUri

For more information, see How to: Configure Client Application Services.

.NET Framework
Available since 3.5
Return to top
Show: