RoleManager<TRole> Class
Exposes role related API which will automatically save changes to the RoleStore.
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Microsoft.AspNet.Identity.RoleManager<TRole, TKey>
Microsoft.AspNet.Identity.RoleManager<TRole>
| Name | Description | |
|---|---|---|
![]() | RoleManager<TRole>(IRoleStore<TRole, String>) | Initializes a new instance of the RoleManager<TRole> class. |
| 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>.) |
| 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>.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



