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

Définition

Recherche le rôle qui a l’ID spécifié en tant qu’opération asynchrone.

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

Paramètres

roleId
String

ID de rôle à rechercher.

cancellationToken
CancellationToken

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

Retours

Task<TRole>

Task<TResult> résultat de la recherche vers le haut.

S’applique à