Freigeben über


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.SetRoleNameAsync Methode

Definition

Legt den Namen einer Rolle im Speicher als asynchronen Vorgang fest.

public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string roleName, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string roleName, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string? roleName, System.Threading.CancellationToken cancellationToken = default);
abstract member SetRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetRoleNameAsync (role As TRole, roleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function SetRoleNameAsync (role As TRole, roleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

role
TRole

Die Rolle, deren Name festgelegt werden soll.

roleName
String

Der Name der 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: