IRoleStore<TRole>.SetNormalizedRoleNameAsync Méthode

Définition

Définissez le nom normalisé d’un rôle en tant qu’opération asynchrone.

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

Paramètres

role
TRole

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

normalizedName
String

Nom normalisé à définir

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 à