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.
Determines whether two factor authentication is enabled for a user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function GetTwoFactorEnabledAsync ( _
userId As TKey _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of Boolean)
returnValue = instance.GetTwoFactorEnabledAsync(userId)
public virtual Task<bool> GetTwoFactorEnabledAsync(
TKey userId
)
public:
virtual Task<bool>^ GetTwoFactorEnabledAsync(
TKey userId
)
abstract GetTwoFactorEnabledAsync :
userId:'TKey -> Task<bool>
override GetTwoFactorEnabledAsync :
userId:'TKey -> Task<bool>
public function GetTwoFactorEnabledAsync(
userId : TKey
) : Task<boolean>
- userId
Type: TKey
The user ID.
Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class