IRoleStore<TRole>.GetRoleNameAsync(TRole, CancellationToken) Méthode

Définition

Obtient le nom d’un rôle à partir du magasin en tant qu’opération asynchrone.

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

Paramètres

role
TRole

Rôle dont le nom doit être retourné.

cancellationToken
CancellationToken

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

Retours

Objet Task<TResult> qui contient le nom du rôle.

S’applique à