Class ApplicationRoleManager
Inheritance
System.Object
ApplicationRoleManager
Assembly: ImageVault.Web.dll
Syntax
public class ApplicationRoleManager : RoleManager<IdentityRole>, ILocalRoleManager
Constructors
ApplicationRoleManager(IRoleStore<IdentityRole, String>)
Declaration
public ApplicationRoleManager(IRoleStore<IdentityRole, string> store)
Parameters
Type |
Name |
Description |
Microsoft.AspNet.Identity.IRoleStore<Microsoft.AspNet.Identity.EntityFramework.IdentityRole, System.String> |
store |
|
Properties
UserManager
Declaration
public ApplicationUserManager UserManager { get; }
Property Value
Methods
AddUserToRolesAsync(String, String[])
Declaration
public Task AddUserToRolesAsync(string userId, string[] roleIds)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String[] |
roleIds |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Create(IdentityFactoryOptions<ApplicationRoleManager>, IOwinContext)
Declaration
public static ApplicationRoleManager Create(IdentityFactoryOptions<ApplicationRoleManager> options, IOwinContext context)
Parameters
Type |
Name |
Description |
Microsoft.AspNet.Identity.Owin.IdentityFactoryOptions<ApplicationRoleManager> |
options |
|
Microsoft.Owin.IOwinContext |
context |
|
Returns
CreateRoleAsync(String)
Declaration
public Task CreateRoleAsync(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
DeleteRoleAsync(String)
Declaration
public Task DeleteRoleAsync(string roleId)
Parameters
Type |
Name |
Description |
System.String |
roleId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GetAllRolesAsync()
Declaration
public Task<IList<ILocalRole>> GetAllRolesAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<ILocalRole>> |
|
GetMembersInRoleAsync(String)
Declaration
public Task<string[]> GetMembersInRoleAsync(string roleId)
Parameters
Type |
Name |
Description |
System.String |
roleId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String[]> |
|
GetRoleAsync(String)
Declaration
public Task<ILocalRole> GetRoleAsync(string roleId)
Parameters
Type |
Name |
Description |
System.String |
roleId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ILocalRole> |
|
RemoveUserFromRolesAsync(String, String[])
Declaration
public Task RemoveUserFromRolesAsync(string userId, string[] roleIds)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String[] |
roleIds |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Implements