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

Asynchronously removes a user from a role.

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

Syntax

'Declaration
Public Overridable Function RemoveFromRoleAsync ( _
    user As TUser, _
    roleName As String _
) As Task
'Usage
Dim instance As UserStore 
Dim user As TUser
Dim roleName As String 
Dim returnValue As Task 

returnValue = instance.RemoveFromRoleAsync(user, _
    roleName)
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 function RemoveFromRoleAsync(
    user : TUser, 
    roleName : String
) : 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

Reference

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class

Microsoft.AspNet.Identity.EntityFramework Namespace

Other Resources

ASP.NET Identity