ClaimsIdentity Constructor (String, String, String)
Initializes a new instance of the ClaimsIdentity class with the specified authentication type, name claim type, and role claim type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- 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. | |||
An empty collection. | |||
| |||
null. | |||
| |||
The value of the nameType parameter. If the nameType parameter is null or an empty string, the property is set to DefaultNameClaimType. | |||
The value of the roleType parameter. If the roleType parameter is null or an empty string, the property is set to DefaultRoleClaimType. |
Available since 10
.NET Framework
Available since 4.5
