Language

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.RemoveFromRoleAsync Method (TUser, String)

 

Asynchronously removes a user from a role.

Namespace:   Microsoft.AspNet.Identity.EntityFramework Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Syntax

public virtual Task RemoveFromRoleAsync(
    TUser user,
    string roleName
)
public:
virtual Task^ RemoveFromRoleAsync(
    TUser user,
    String^ roleName
)
abstract RemoveFromRoleAsync :
        user:'TUser *
        roleName:string -> Task
override RemoveFromRoleAsync :
        user:'TUser *
        roleName:string -> Task
Public Overridable Function RemoveFromRoleAsync (
    user As TUser,
    roleName As String
) As Task

Parameters

  • user Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

Implements

IUserRoleStore<TUser, TKey>.RemoveFromRoleAsync(TUser, String)

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class Microsoft.AspNet.Identity.EntityFramework Namespace [ASP.NET Identity](https://go.microsoft.com/fwlink/p/?linkid=393664.

Return to top