RoleManager<TRole> Class
Exposes role related API which will automatically save changes to the RoleStore.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.RoleManager<TRole, TKey>
Microsoft.AspNet.Identity.RoleManager<TRole>
Syntax
public class RoleManager<TRole> : RoleManager<TRole, string>
where TRole : class, IRole<string>
generic<typename TRole>
where TRole : ref class, IRole<String^>
public ref class RoleManager : RoleManager<TRole, String^>
type RoleManager<'TRole when 'TRole : not struct and IRole<string>> =
class
inherit RoleManager<'TRole, string>
end
Public Class RoleManager(Of TRole As { Class, IRole(Of String) })
Inherits RoleManager(Of TRole, String)
Type Parameters
- TRole
The type of the role.
Constructors
Name | Description | |
---|---|---|
![]() |
RoleManager<TRole>(IRoleStore<TRole, String>) | Initializes a new instance of the RoleManager<TRole> class. |
Properties
Name | Description | |
---|---|---|
![]() |
Roles | Gets the IQueryable of roles if the store is an IQueryableRoleStore.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
RoleValidator | Gets or sets the object used to validate roles before persisting changes.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
Store | Gets or sets the persistence abstraction that the Manager operates against.(Inherited from RoleManager<TRole, TKey>.) |
Methods
Name | Description | |
---|---|---|
![]() |
CreateAsync(TRole) | Asynchronously creates a role.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
DeleteAsync(TRole) | Asynchronously deletes a role.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
Dispose() | Releases the resources used by the current instance of the RoleManager<TRole, TKey> class.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
Dispose(Boolean) | Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the RoleManager<TRole, TKey> class.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
FindByIdAsync(TKey) | Asynchronously finds a role using the specified identifier.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
FindByNameAsync(String) | Asynchronously finds a role by name.(Inherited from RoleManager<TRole, TKey>.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
RoleExistsAsync(String) | Indicates a value whether the role exists. (Inherited from RoleManager<TRole, TKey>.) |
![]() |
ToString() | (Inherited from Object.) |
![]() |
UpdateAsync(TRole) | Asynchronously updates an existing role.(Inherited from RoleManager<TRole, TKey>.) |
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 Namespace
ASP.NET Identity
Return to top