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

Définition

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

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

Paramètres

role
TRole

Rôle dont l’ID doit être retourné.

cancellationToken
CancellationToken

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

Retours

Task<TResult> qui contient l’ID du rôle.

S’applique à