IUserTwoFactorStore<TUser>.SetTwoFactorEnabledAsync Metodo

Definizione

Imposta un flag che indica se l'autenticazione a due fattori specificata user è abilitata o meno come operazione asincrona.

public:
 System::Threading::Tasks::Task ^ SetTwoFactorEnabledAsync(TUser user, bool enabled, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetTwoFactorEnabledAsync (TUser user, bool enabled, System.Threading.CancellationToken cancellationToken);
abstract member SetTwoFactorEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetTwoFactorEnabledAsync (user As TUser, enabled As Boolean, cancellationToken As CancellationToken) As Task

Parametri

user
TUser

L'utente il cui stato di autenticazione a due fattori abilitato deve essere impostato.

enabled
Boolean

Flag che indica se l'autenticazione a due fattori specificata è user abilitata.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona.

Si applica a