Share via


UserStore<TUser>.RemoveFromRoleAsync Method

Remove 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, _
    role As String _
) As Task
'Usage
Dim instance As UserStore 
Dim user As TUser
Dim role As String 
Dim returnValue As Task 

returnValue = instance.RemoveFromRoleAsync(user, _
    role)
public virtual Task RemoveFromRoleAsync(
    TUser user,
    string role
)
public:
virtual Task^ RemoveFromRoleAsync(
    TUser user, 
    String^ role
)
abstract RemoveFromRoleAsync : 
        user:'TUser * 
        role:string -> Task  
override RemoveFromRoleAsync : 
        user:'TUser * 
        role:string -> Task
public function RemoveFromRoleAsync(
    user : TUser, 
    role : String
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Implements

IUserRoleStore<TUser>.RemoveFromRoleAsync(TUser, String)

See Also

Reference

UserStore<TUser> Class

Microsoft.AspNet.Identity.EntityFramework Namespace