UserManager<TUser>.GenerateChangeEmailTokenAsync(TUser, String) 方法

定义

为指定用户生成电子邮件更改令牌。

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GenerateChangeEmailTokenAsync(TUser user, System::String ^ newEmail);
public virtual System.Threading.Tasks.Task<string> GenerateChangeEmailTokenAsync (TUser user, string newEmail);
abstract member GenerateChangeEmailTokenAsync : 'User * string -> System.Threading.Tasks.Task<string>
override this.GenerateChangeEmailTokenAsync : 'User * string -> System.Threading.Tasks.Task<string>
Public Overridable Function GenerateChangeEmailTokenAsync (user As TUser, newEmail As String) As Task(Of String)

参数

user
TUser

要为其生成电子邮件更改令牌的用户。

newEmail
String

新电子邮件地址。

返回

Task表示异步操作的 ,是电子邮件更改令牌。

适用于