Initializes an instance of ClaimsIdentity using an enumerated collection of objects and the specified authentication type, name claim type, and role claim type.
命名空间: Microsoft.IdentityModel.Claims
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)
用法
Dim claims As IEnumerable(Of Claim) Dim bootstrapToken As SecurityToken Dim instance As New ClaimsIdentity(claims, bootstrapToken)
语法
声明
Public Sub New ( _
claims As IEnumerable(Of Claim), _
bootstrapToken As SecurityToken _
)
public ClaimsIdentity (
IEnumerable<Claim> claims,
SecurityToken bootstrapToken
)
public:
ClaimsIdentity (
IEnumerable<Claim^>^ claims,
SecurityToken^ bootstrapToken
)
public ClaimsIdentity (
IEnumerable<Claim> claims,
SecurityToken bootstrapToken
)
public function ClaimsIdentity (
claims : IEnumerable<Claim>,
bootstrapToken : SecurityToken
)
参数
- claims
The collection of Claim objects to populate this ClaimsIdentity with.
- bootstrapToken
The token originally used to create this identity.
异常
| 异常类型 | 条件 |
|---|
备注
平台
开发平台
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
请参见
参考
ClaimsIdentity 类
ClaimsIdentity 成员
Microsoft.IdentityModel.Claims 命名空间