IUserEmailStore<TUser>.GetEmailAsync(TUser, CancellationToken) Metoda

Definice

Získá e-mailovou useradresu zadaného .

public:
 System::Threading::Tasks::Task<System::String ^> ^ GetEmailAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetEmailAsync (TUser user, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string?> GetEmailAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetEmailAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetEmailAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of String)

Parametry

user
TUser

Uživatel, jehož e-mail by měl být vrácen.

cancellationToken
CancellationToken

Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.

Návraty

Task<String>

Objekt úkolu obsahující výsledky asynchronní operace, e-mailovou adresu zadaného userobjektu .

Platí pro