Class IdentityUserClaim<TKey>
Represents a claim that a user possesses.
public class IdentityUserClaim<TKey> : IIdentityUserClaim<TKey>, IClameConverter where TKey : IEquatable<TKey>
Type Parameters
TKey
The type used for the primary key for this user that possesses this claim.
- Inheritance
-
IdentityUserClaim<TKey>
- Implements
-
IIdentityUserClaim<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 user claim.
public virtual int Id { get; set; }
Property Value
UserId
Gets or sets the primary key of the user associated with this claim.
public virtual TKey UserId { get; set; }
Property Value
- TKey
Methods
InitializeFromClaim(Claim)
Reads the type and value from the Claim.
public virtual void InitializeFromClaim(Claim claim)
Parameters
claim
Claim
ToClaim()
Converts the entity into a Claim instance.
public virtual Claim ToClaim()