IdentityRole<TKey, TUserRole> Class
Represents a role entity
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.EntityFramework.IdentityRole<TKey, TUserRole>
Microsoft.AspNet.Identity.EntityFramework.IdentityRole
Syntax
public class IdentityRole<TKey, TUserRole> : IRole<TKey>
where TUserRole : IdentityUserRole<TKey>
generic<typename TKey, typename TUserRole>
where TUserRole : IdentityUserRole<TKey>
public ref class IdentityRole : IRole<TKey>
type IdentityRole<'TKey, 'TUserRole when 'TUserRole : IdentityUserRole<'TKey>> =
class
interface IRole<'TKey>
end
Public Class IdentityRole(Of TKey, TUserRole As IdentityUserRole(Of TKey))
Implements IRole(Of TKey)
Type Parameters
- TKey
The type of the key.
- TUserRole
The type of the user role.
Constructors
Name | Description | |
---|---|---|
IdentityRole<TKey, TUserRole>() | Initializes a new instance of the IdentityRole<TKey, TUserRole> class. |
Properties
Name | Description | |
---|---|---|
Id | Gets or sets the role id. |
|
Name | Gets or sets the role name. |
|
Users | Gets the collection of users in the role. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity
Return to top