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);
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

傳回

Task<String>

工作物件,其中包含非同步作業的結果,也就是指定之的電子郵件地址 user

適用於