初始化具有指定名称的应用程序。
命名空间: Microsoft.SharePoint.Administration.Claims
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Sub Initialize ( _
name As String, _
config As NameValueCollection _
)
用法
Dim instance As SPClaimsAuthRoleProvider
Dim name As String
Dim config As NameValueCollection
instance.Initialize(name, config)
public override void Initialize(
string name,
NameValueCollection config
)
参数
name
类型:System.String应用程序名。
config
类型:System.Collections.Specialized.NameValueCollection表示在配置中为该提供程序指定的特定于提供程序的属性的名称/值对的集合。不使用此参数。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | name或config是 null 。 |
备注
此方法将name参数的值存储在Name属性。它将忽略config参数。