ClaimsIdentity Constructor (IEnumerable<Claim>, String, String, String)
Initializes a new instance of the ClaimsIdentity class with the specified, claims, authentication type, name claim type, and role claim type.
Assembly: mscorlib (in mscorlib.dll)
public ClaimsIdentity( IEnumerable<Claim> claims, string authenticationType, string nameType, string roleType )
Parameters
- claims
- Type: System.Collections.Generic.IEnumerable<Claim>
The claims with which to populate the claims identity.
- authenticationType
- Type: System.String
The type of authentication used.
- nameType
- Type: System.String
The claim type to use for name claims.
- roleType
- Type: System.String
The claim type to use for role claims.
The following table shows initial property values for an instance of the ClaimsIdentity class.
Property | Value | ||
|---|---|---|---|
null. | |||
The value of the authenticationType parameter. If the authenticationType parameter is null or an empty string, the property is set to null. | |||
null. | |||
Initialized from the claims parameter. | |||
| |||
null. | |||
| |||
The value of the nameType parameter. However, if the nameType parameter is null or an empty string, the property is set to DefaultNameClaimType. | |||
The value of the roleClaimType parameter. However, if the roleClaimType parameter is null or an empty string, the property is set to DefaultRoleClaimType. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note