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

Definition

Validates that an email confirmation token matches the specified user.

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

Parameters

user
TUser TUser TUser

The user to validate the token against.

token
String String String

The email confirmation token to validate.

Returns

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

Applies to