Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets whether two factor authentication is enabled for the user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Function SetTwoFactorEnabledAsync ( _
user As TUser, _
enabled As Boolean _
) As Task
'Usage
Dim instance As IUserTwoFactorStore
Dim user As TUser
Dim enabled As Boolean
Dim returnValue As Task
returnValue = instance.SetTwoFactorEnabledAsync(user, _
enabled)
Task SetTwoFactorEnabledAsync(
TUser user,
bool enabled
)
Task^ SetTwoFactorEnabledAsync(
TUser user,
bool enabled
)
abstract SetTwoFactorEnabledAsync :
user:'TUser *
enabled:bool -> Task
function SetTwoFactorEnabledAsync(
user : TUser,
enabled : boolean
) : Task
- user
Type: TUser
The user to set for.
- enabled
Type: System.Boolean
true to enable the two factor authentication; otherwise, false.
Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
IUserTwoFactorStore<TUser, TKey> Interface