Language
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 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.
roleName Type: System.String
The name of the role.
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