اقرأ باللغة الإنجليزية

مشاركة عبر


IdentityRoleClaim<TKey> Class

Definition

Represents a claim that is granted to all users within a role.

C#
public class IdentityRoleClaim<TKey> where TKey : IEquatable<TKey>

Type Parameters

TKey

The type of the primary key of the role associated with this claim.

Inheritance
IdentityRoleClaim<TKey>

Constructors

Properties

ClaimType

Gets or sets the claim type for this claim.

ClaimValue

Gets or sets the claim value for this claim.

Id

Gets or sets the identifier for this role claim.

RoleId

Gets or sets the of the primary key of the role associated with this claim.

Methods

InitializeFromClaim(Claim)

Initializes by copying ClaimType and ClaimValue from the other claim.

ToClaim()

Constructs a new claim with the type and value.

Applies to

منتج الإصدارات
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0