Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously removes the role for the user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Function RemoveFromRoleAsync ( _
user As TUser, _
roleName As String _
) As Task
'Usage
Dim instance As IUserRoleStore
Dim user As TUser
Dim roleName As String
Dim returnValue As Task
returnValue = instance.RemoveFromRoleAsync(user, _
roleName)
Task RemoveFromRoleAsync(
TUser user,
string roleName
)
Task^ RemoveFromRoleAsync(
TUser user,
String^ roleName
)
abstract RemoveFromRoleAsync :
user:'TUser *
roleName:string -> Task
function RemoveFromRoleAsync(
user : TUser,
roleName : String
) : Task
- user
Type: TUser
The user.
- roleName
Type: System.String
The name of the role.
Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
IUserRoleStore<TUser, TKey> Interface