UserStoreBase<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.FindRoleAsync Méthode

Définition

Retourne un rôle avec le nom normalisé s’il existe.

protected:
 abstract System::Threading::Tasks::Task<TRole> ^ FindRoleAsync(System::String ^ normalizedRoleName, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TRole> FindRoleAsync (string normalizedRoleName, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TRole?> FindRoleAsync (string normalizedRoleName, System.Threading.CancellationToken cancellationToken);
abstract member FindRoleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Role (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key>)>
Protected MustOverride Function FindRoleAsync (normalizedRoleName As String, cancellationToken As CancellationToken) As Task(Of TRole)

Paramètres

normalizedRoleName
String

Nom du rôle normalisé.

cancellationToken
CancellationToken

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

Retours

Task<TRole>

Rôle s’il existe.

S’applique à