共用方式為


IUserEmailStore<TUser>.SetEmailAsync 方法

定義

email設定 的 user 位址。

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

參數

user
TUser

應該設定其電子郵件的使用者。

email
String

要設定的電子郵件。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

工作物件,表示非同步作業。

適用於