IUserRoleStore<TUser> Interface
Defines the methods to implement to map users to their roles.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public interface IUserRoleStore<TUser> : IUserRoleStore<TUser, string>,
IUserStore<TUser, string>, IDisposable
where TUser : class, IUser<string>
generic<typename TUser>
where TUser : ref class, IUser<String^>
public interface class IUserRoleStore : IUserRoleStore<TUser, String^>,
IUserStore<TUser, String^>, IDisposable
type IUserRoleStore<'TUser when 'TUser : not struct and IUser<string>> =
interface
interface IUserRoleStore<'TUser, string>
interface IUserStore<'TUser, string>
interface IDisposable
end
Public Interface IUserRoleStore(Of TUser As { Class, IUser(Of String) })
Inherits IUserRoleStore(Of TUser, String), IUserStore(Of TUser, String),
IDisposable
Type Parameters
- TUser
The type of the user.
Methods
Name | Description | |
---|---|---|
![]() |
AddToRoleAsync(TUser, String) | Asynchronously adds a user to a role.(Inherited from IUserRoleStore<TUser, TKey>.) |
![]() |
CreateAsync(TUser) | Asynchronously inserts a new user.(Inherited from IUserStore<TUser, TKey>.) |
![]() |
DeleteAsync(TUser) | Asynchronously deletes a user.(Inherited from IUserStore<TUser, TKey>.) |
![]() |
Dispose() | (Inherited from IDisposable.) |
![]() |
FindByIdAsync(TKey) | Asynchronously finds a user using the specified identifier.(Inherited from IUserStore<TUser, TKey>.) |
![]() |
FindByNameAsync(String) | Asynchronously finds a user by name.(Inherited from IUserStore<TUser, TKey>.) |
![]() |
GetRolesAsync(TUser) | Asynchronously returns the roles for this user.(Inherited from IUserRoleStore<TUser, TKey>.) |
![]() |
IsInRoleAsync(TUser, String) | Asynchronously returns whether a user is in the role.(Inherited from IUserRoleStore<TUser, TKey>.) |
![]() |
RemoveFromRoleAsync(TUser, String) | Asynchronously removes the role for the user.(Inherited from IUserRoleStore<TUser, TKey>.) |
![]() |
UpdateAsync(TUser) | Asynchronously updates a user.(Inherited from IUserStore<TUser, TKey>.) |
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top