IUserRoleStore<TUser> Interface
Definition
Provides an abstraction for a store which maps users to roles.
generic <typename TUser>
where TUser : classpublic interface class IUserRoleStore : IDisposable, Microsoft::AspNetCore::Identity::IUserStore<TUser>
public interface IUserRoleStore<TUser> : IDisposable, Microsoft.AspNetCore.Identity.IUserStore<TUser> where TUser : class
type IUserRoleStore<'User (requires 'User : null)> = interface
interface IUserStore<'User (requires 'User : null)>
interface IDisposable
Public Interface IUserRoleStore(Of TUser)
Implements IDisposable, IUserStore(Of TUser)
Type Parameters
- TUser
The type encapsulating a user.
- Derived
- Implements
Methods
AddToRoleAsync(TUser, String, CancellationToken) |
Add the specified |
CreateAsync(TUser, CancellationToken) |
Creates the specified |
DeleteAsync(TUser, CancellationToken) |
Deletes the specified |
FindByIdAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified |
FindByNameAsync(String, CancellationToken) |
Finds and returns a user, if any, who has the specified normalized user name. (Inherited from IUserStore<TUser>) |
GetNormalizedUserNameAsync(TUser, CancellationToken) |
Gets the normalized user name for the specified |
GetRolesAsync(TUser, CancellationToken) |
Gets a list of role names the specified |
GetUserIdAsync(TUser, CancellationToken) |
Gets the user identifier for the specified |
GetUserNameAsync(TUser, CancellationToken) |
Gets the user name for the specified |
GetUsersInRoleAsync(String, CancellationToken) |
Returns a list of Users who are members of the named role. |
IsInRoleAsync(TUser, String, CancellationToken) |
Returns a flag indicating whether the specified |
RemoveFromRoleAsync(TUser, String, CancellationToken) |
Remove the specified |
SetNormalizedUserNameAsync(TUser, String, CancellationToken) |
Sets the given normalized name for the specified |
SetUserNameAsync(TUser, String, CancellationToken) |
Sets the given |
UpdateAsync(TUser, CancellationToken) |
Updates the specified |