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

Definizione

Trova il ruolo che ha l'ID specificato come operazione asincrona.

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)

Parametri

roleId
String

ID ruolo da cercare.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Task<TRole>

Risultato Task<TResult> della ricerca.

Si applica a