IUserTwoFactorStore<TUser>.SetTwoFactorEnabledAsync 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.
Sets a flag indicating whether the specified user
has two factor authentication enabled or not,
as an asynchronous operation.
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
Parameters
- user
- TUser
The user whose two factor authentication enabled status should be set.
- enabled
- Boolean
A flag indicating whether the specified user
has two factor authentication enabled.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
The Task that represents the asynchronous operation.