RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.GetRoleIdAsync Metoda

Definicja

Pobiera identyfikator roli ze sklepu jako operację asynchroniczną.

public System.Threading.Tasks.Task<string> GetRoleIdAsync (TRole role, System.Threading.CancellationToken cancellationToken = default);
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 Function GetRoleIdAsync (role As TRole, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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 propagacji powiadomień, że operacja powinna zostać anulowana.

Zwraca

Element Task<TResult> zawierający identyfikator roli.

Implementuje

Dotyczy