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
- user
Type: TUser
- role
Type: System.String
Return Value
Type: System.Threading.Tasks.Task
Implements
IUserRoleStore<TUser>.RemoveFromRoleAsync(TUser, String)