IUserEmailStore<TUser>.GetEmailAsync(TUser, CancellationToken) 方法

定义

获取指定 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)

参数

user
TUser

应返回其电子邮件的用户。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

包含异步操作结果的任务对象,指定 user的电子邮件地址。

适用于