UserManager<TUser>.SetEmailAsync(TUser, String) Method

Definition

Sets the email address for a user.

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)

Parameters

user
TUser

The user whose email should be set.

email
String

The email to set.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to