UserManager<TUser>.ConfirmEmailAsync(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.
Validates that an email confirmation token matches the specified user
.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ConfirmEmailAsync(TUser user, System::String ^ token);
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
The user to validate the token against.
- token
- String
The email confirmation token to validate.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.