IdentityRole<TKey,TUserRole,TRoleClaim> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a role in the identity system
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)
- TKey
The type used for the primary key for the role.
- TUserRole
The type used for user roles.
- TRoleClaim
The type used for role claims.
- Inheritance
-
IdentityRole<TKey,TUserRole,TRoleClaim>
- Derived
Identity |
Initializes a new instance of IdentityRole<TKey>. |
Identity |
Initializes a new instance of IdentityRole<TKey>. |
Claims |
Navigation property for claims in this role. |
Concurrency |
A random value that should change whenever a role is persisted to the store |
Id |
Gets or sets the primary key for this role. |
Name |
Gets or sets the name for this role. |
Normalized |
Gets or sets the normalized name for this role. |
Users |
Navigation property for the users in this role. |
To |
Returns the name of the role. |
Produkt | Versiounen |
---|---|
ASP.NET Core | 1.0, 1.1 |