UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetEmailAsync 方法

定义

email设置 的user地址。

public virtual System.Threading.Tasks.Task SetEmailAsync (TUser user, string email, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task SetEmailAsync (TUser user, string? email, System.Threading.CancellationToken cancellationToken = default);
abstract member SetEmailAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetEmailAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetEmailAsync (user As TUser, email As String, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

user
TUser

应设置其电子邮件的用户。

email
String

要设置的电子邮件。

cancellationToken
CancellationToken

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

返回

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

实现

适用于