ClaimsIdentity 构造函数

重载列表

名称 说明
ClaimsIdentity () Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity with an empty claims collection.
ClaimsIdentity (泛型 IEnumerable) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects.
ClaimsIdentity (IIdentity) Initializes an instance of ClaimsIdentity using the name and authentication type from the specified IIdentity instance.
ClaimsIdentity (String) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity with an empty T:Microsoft.IdentityModel.Claims.Claim collection and the specified authentication type.
ClaimsIdentity (泛型 IEnumerable, SecurityToken) Initializes an instance of ClaimsIdentity using an enumerated collection of objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (泛型 IEnumerable, String) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects and the specified authentication type.
ClaimsIdentity (SerializationInfo, StreamingContext) Initializes an instance of ClaimsIdentity from a serialized stream created with T:System.Runtime.Serialization.ISerializable.
ClaimsIdentity (X509Certificate2, String) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity from an T:System.Security.Cryptography.X509Certificates.X509Certificate2 with a specified issuer name.
ClaimsIdentity (泛型 IEnumerable, String, SecurityToken) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (String, String, String) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity with an empty T:Microsoft.IdentityModel.Claims.Claim collection, the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (X509Certificate2, String, String) Initializes an instance of ClaimsIdentity from a T:System.Security.Cryptography.X509Certificates.X509Certificate2 with a specified issuer name and the authentication type.
ClaimsIdentity (泛型 IEnumerable, String, String, String) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects and the specified authentication type, name claim type, and role claim type.
ClaimsIdentity (泛型 IEnumerable, String, String, String, SecurityToken) Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects and the specified authentication type, name claim type, and role claim type.

请参见

参考

ClaimsIdentity 类
ClaimsIdentity 成员
Microsoft.IdentityModel.Claims 命名空间

版权所有 (C) 2008 Microsoft Corporation。保留所有权利。