Class IdentityRoleClaim<TKey>
Represents a claim that is granted to all users within a role.
public class IdentityRoleClaim<TKey> : IIdentityRoleClaim<TKey>, IClameConverter where TKey : IEquatable<TKey>
Type Parameters
TKey
The type of the primary key of the role associated with this claim.
- Inheritance
-
IdentityRoleClaim<TKey>
- Implements
-
IIdentityRoleClaim<TKey>
Properties
ClaimType
Gets or sets the claim type for this claim.
public virtual string ClaimType { get; set; }
Property Value
ClaimValue
Gets or sets the claim value for this claim.
public virtual string ClaimValue { get; set; }
Property Value
Id
Gets or sets the identifier for this role claim.
public virtual int Id { get; set; }
Property Value
RoleId
Gets or sets the of the primary key of the role associated with this claim.
public virtual TKey RoleId { get; set; }
Property Value
- TKey
Methods
InitializeFromClaim(Claim)
Initializes by copying ClaimType and ClaimValue from the other claim.
public virtual void InitializeFromClaim(Claim other)
Parameters
other
ClaimThe claim to initialize from.
ToClaim()
Constructs a new claim with the type and value.
public virtual Claim ToClaim()