IRoleStore<TRole>.SetRoleNameAsync Méthode

Définition

Définit le nom d’un rôle dans le magasin en tant qu’opération asynchrone.

public:
 System::Threading::Tasks::Task ^ SetRoleNameAsync(TRole role, System::String ^ roleName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string roleName, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetRoleNameAsync (TRole role, string? roleName, System.Threading.CancellationToken cancellationToken);
abstract member SetRoleNameAsync : 'Role * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetRoleNameAsync (role As TRole, roleName As String, cancellationToken As CancellationToken) As Task

Paramètres

role
TRole

Rôle dont le nom doit être défini.

roleName
String

Nom du rôle.

cancellationToken
CancellationToken

CancellationToken utilisé pour propager les notifications indiquant que l’opération doit être annulée.

Retours

Task qui représente l’opération asynchrone.

S’applique à