IdentityRole Class

Definition

The default implementation of IdentityRole<TKey> which uses a string as the primary key.

C#
public class IdentityRole : Microsoft.AspNetCore.Identity.IdentityRole<string>
Inheritance
IdentityRole

Constructors

IdentityRole()

Initializes a new instance of IdentityRole.

IdentityRole(String)

Initializes a new instance of IdentityRole.

Properties

ConcurrencyStamp

A random value that should change whenever a role is persisted to the store

(Inherited from IdentityRole<TKey>)
Id

Gets or sets the primary key for this role.

(Inherited from IdentityRole<TKey>)
Name

Gets or sets the name for this role.

(Inherited from IdentityRole<TKey>)
NormalizedName

Gets or sets the normalized name for this role.

(Inherited from IdentityRole<TKey>)

Methods

ToString()

Returns the name of the role.

(Inherited from IdentityRole<TKey>)

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0