Sdílet prostřednictvím


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

Definice

Získá e-mailovou adresu zadaného user.

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 se má vrátit.

cancellationToken
CancellationToken

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

Návraty

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

Platí pro