IRoleStore<TRole>.GetRoleIdAsync(TRole, CancellationToken) Metoda

Definicja

Pobiera identyfikator roli ze sklepu jako operację asynchroniczną.

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)

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.

Dotyczy