ClientFormsAuthenticationMembershipProvider.Initialize Method

Definition

Initializes the provider.

C#
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config);

Parameters

name
String

The friendly name of the provider.

config
NameValueCollection

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

Exceptions

name is null.

-or-

config is null.

name is empty.

-or-

config contains an unrecognized value.

Remarks

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

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also