ClientFormsAuthenticationMembershipProvider::Initialize Method
Initializes the provider.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: virtual void Initialize( String^ name, NameValueCollection^ config ) override
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 nullptr. -or- config is nullptr. |
| 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.