Freigeben über


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.RemoveFromRoleAsync Methode

Definition

Entfernt das angegebene normalizedRoleName aus dem angegebenen user.

public virtual System.Threading.Tasks.Task RemoveFromRoleAsync (TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task RemoveFromRoleAsync (TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveFromRoleAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RemoveFromRoleAsync (user As TUser, normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overrides Function RemoveFromRoleAsync (user As TUser, normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

user
TUser

Der Benutzer, aus dem die Rolle entfernt werden soll.

normalizedRoleName
String

Die zu entfernende Rolle.

cancellationToken
CancellationToken

Die CancellationToken-Struktur, mit der Benachrichtigungen verteilt werden, dass der Vorgang abgebrochen werden muss.

Gibt zurück

Die Task-Klasse, die den asynchronen Vorgang darstellt.

Implementiert

Gilt für: