Share via


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

 

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

public virtual Task<bool> GetTwoFactorEnabledAsync(
    TUser user
)
public:
virtual Task<bool>^ GetTwoFactorEnabledAsync(
    TUser user
)
abstract GetTwoFactorEnabledAsync : 
        user:'TUser -> Task<bool>
override GetTwoFactorEnabledAsync : 
        user:'TUser -> Task<bool>
Public Overridable Function GetTwoFactorEnabledAsync (
    user As TUser
) As Task(Of 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

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top