JwtSecurityTokenHandler.RoleClaimType Property
Gets or sets the String passed to ClaimsIdentity.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Property RoleClaimType As String
public string RoleClaimType { get; set; }
public:
property String^ RoleClaimType {
String^ get ();
void set (String^ value);
}
member RoleClaimType : string with get, set
function get RoleClaimType () : String
function set RoleClaimType (value : String)
Property Value
Type: System.String
Returns String.
Remarks
Controls the Claim(s) returned from IsInRole.
Each Claim returned will have a Type equal to RoleClaimType.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.