Delen via


IUserEmailStore<TUser>.SetEmailConfirmedAsync Method

Definition

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

public:
 System::Threading::Tasks::Task ^ SetEmailConfirmedAsync(TUser user, bool confirmed, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetEmailConfirmedAsync (TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken);
abstract member SetEmailConfirmedAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetEmailConfirmedAsync (user As TUser, confirmed As Boolean, cancellationToken As CancellationToken) 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.

Applies to