UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.SetEmailConfirmedAsync Method

Definition

Sets the flag indicating whether the specified user's email address has been confirmed or not.

public virtual System.Threading.Tasks.Task SetEmailConfirmedAsync (TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken = default);
abstract member SetEmailConfirmedAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetEmailConfirmedAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetEmailConfirmedAsync (user As TUser, confirmed As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

user
TUser

The user whose email confirmation status should be set.

confirmed
Boolean

A flag indicating if the email address has been confirmed, true if the address is confirmed otherwise false.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The task object representing the asynchronous operation.

Implements

Applies to