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)

public interface IUserRoleStore<TUser> : IUserRoleStore<TUser, string>, 
	IUserStore<TUser, string>, IDisposable
where TUser : class, IUser<string>

Type Parameters

TUser

The type of the user.

NameDescription
System_CAPS_pubmethodAddToRoleAsync(TUser, String)

Asynchronously adds a user to a role.(Inherited from IUserRoleStore<TUser, TKey>.)

System_CAPS_pubmethodCreateAsync(TUser)

Asynchronously inserts a new user.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodDeleteAsync(TUser)

Asynchronously deletes a user.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodFindByIdAsync(TKey)

Asynchronously finds a user using the specified identifier.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodFindByNameAsync(String)

Asynchronously finds a user by name.(Inherited from IUserStore<TUser, TKey>.)

System_CAPS_pubmethodGetRolesAsync(TUser)

Asynchronously returns the roles for this user.(Inherited from IUserRoleStore<TUser, TKey>.)

System_CAPS_pubmethodIsInRoleAsync(TUser, String)

Asynchronously returns whether a user is in the role.(Inherited from IUserRoleStore<TUser, TKey>.)

System_CAPS_pubmethodRemoveFromRoleAsync(TUser, String)

Asynchronously removes the role for the user.(Inherited from IUserRoleStore<TUser, TKey>.)

System_CAPS_pubmethodUpdateAsync(TUser)

Asynchronously updates a user.(Inherited from IUserStore<TUser, TKey>.)

Return to top
Show: