UserManager<TUser>.SetEmailAsync(TUser, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- String
The email to set.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.