IRoleStore<TRole>.FindByIdAsync(String, CancellationToken) Metoda

Definicja

Znajduje rolę, która ma określony identyfikator jako operację asynchroniczną.

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)

Parametry

roleId
String

Identyfikator roli do wyszukania.

cancellationToken
CancellationToken

Używane CancellationToken do propagacji powiadomień, że operacja powinna zostać anulowana.

Zwraca

Task<TRole>

Wynik Task<TResult> wyszukiwania.

Dotyczy