共用方式為


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

適用於