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

定义

设置 emailuser地址。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetEmailAsync(TUser user, System::String ^ email);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetEmailAsync (TUser user, string email);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetEmailAsync (TUser user, string? email);
abstract member SetEmailAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetEmailAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetEmailAsync (user As TUser, email As String) As Task(Of IdentityResult)

参数

user
TUser

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

email
String

要设置的电子邮件。

返回

表示 Task 异步操作的 ,包含 IdentityResult 操作的 。

适用于