IdentityRole<TKey,TUserRole,TRoleClaim> Třída

Definice

Představuje roli v systému identit.

generic <typename TKey, typename TUserRole, typename TRoleClaim>
 where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey> where TRoleClaim : IdentityRoleClaim<TKey>public ref class IdentityRole
public class IdentityRole<TKey,TUserRole,TRoleClaim> where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey> where TRoleClaim : IdentityRoleClaim<TKey>
type IdentityRole<'Key, 'UserRole, 'RoleClaim (requires 'Key :> IEquatable<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'RoleClaim :> IdentityRoleClaim<'Key>)> = class
Public Class IdentityRole(Of TKey, TUserRole, TRoleClaim)

Parametry typu

TKey

Typ použitý pro primární klíč role

TUserRole

Typ použitý pro role uživatele

TRoleClaim

Typ použitý pro deklarace identity role.

Dědičnost
IdentityRole<TKey,TUserRole,TRoleClaim>
Odvozené

Konstruktory

IdentityRole<TKey,TUserRole,TRoleClaim>()

Inicializuje novou instanci IdentityRole<TKey> .

IdentityRole<TKey,TUserRole,TRoleClaim>(String)

Inicializuje novou instanci IdentityRole<TKey> .

Vlastnosti

Claims

Navigační vlastnost pro deklarace identity v této roli

ConcurrencyStamp

Náhodná hodnota, která se má změnit pokaždé, když se role trvale uloží do úložiště

Id

Získá nebo nastaví primární klíč pro tuto roli.

Name

Získá nebo nastaví název této role.

NormalizedName

Získá nebo nastaví normalizovaný název této role.

Users

Navigační vlastnost pro uživatele v této roli

Metody

ToString()

Vrátí název role.

Platí pro