UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.GetTwoFactorEnabledAsync Method

Asynchronously determines whether the two-factor providers are enabled for the user.

Namespace:  Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Syntax

'Declaration
Public Function GetTwoFactorEnabledAsync ( _
    user As TUser _
) As Task(Of Boolean)
'Usage
Dim instance As UserStore 
Dim user As TUser
Dim returnValue As Task(Of Boolean)

returnValue = instance.GetTwoFactorEnabledAsync(user)
public Task<bool> GetTwoFactorEnabledAsync(
    TUser user
)
public:
virtual Task<bool>^ GetTwoFactorEnabledAsync(
    TUser user
) sealed
abstract GetTwoFactorEnabledAsync : 
        user:'TUser -> Task<bool> 
override GetTwoFactorEnabledAsync : 
        user:'TUser -> Task<bool> 
public final function GetTwoFactorEnabledAsync(
    user : TUser
) : Task<boolean>

Parameters

  • user
    Type: TUser
    The user.

Return Value

Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.

Implements

IUserTwoFactorStore<TUser, TKey>.GetTwoFactorEnabledAsync(TUser)

See Also

Reference

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class

Microsoft.AspNet.Identity.EntityFramework Namespace

Other Resources

ASP.NET Identity