UserManager<TUser, TKey>.GetTwoFactorEnabledAsync Method (TKey)

 

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)

Syntax

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 Overridable Function GetTwoFactorEnabledAsync (
    userId As TKey
) As Task(Of Boolean)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top