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. |
Available since 10
.NET Framework
Available since 4.5
