Udostępnij za pośrednictwem


RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>.GetRoleIdAsync Metoda

Definicja

Pobiera identyfikator roli z magazynu jako operację asynchroniczną.

public virtual System.Threading.Tasks.Task<string> GetRoleIdAsync (TRole role, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleIdAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetRoleIdAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetRoleIdAsync (role As TRole, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parametry

role
TRole

Rola, której identyfikator powinien zostać zwrócony.

cancellationToken
CancellationToken

Używane CancellationToken do propagowania powiadomień, które należy anulować operacji.

Zwraca

Element Task<TResult> zawierający identyfikator roli.

Implementuje

Dotyczy