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,用于传播应取消操作的通知。

返回

表示异步操作的任务对象。

适用于