ClientFormsAuthenticationMembershipProvider.Initialize 方法

定义

初始化提供程序。

public:
 override void Initialize(System::String ^ name, System::Collections::Specialized::NameValueCollection ^ config);
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config);
override this.Initialize : string * System.Collections.Specialized.NameValueCollection -> unit
Public Overrides Sub Initialize (name As String, config As NameValueCollection)

参数

name
String

提供程序的友好名称。

config
NameValueCollection

一个名称/值对集合,表示此提供程序的配置中指定的提供程序特定的属性。

例外

namenull

-或-

confignull

name 为空。

-或-

config 包含无法识别的值。

注解

ASP.NET 扩展性模型调用 Initialize 方法,以使用应用程序配置文件中的信息初始化 ClientFormsAuthenticationMembershipProvider。 此方法可识别以下身份验证服务配置属性:

  • name
  • description
  • savePasswordHashLocally
  • credentialsProvider
  • connectionStringName
  • serviceUri

适用于

另请参阅