Share via


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

 

Returns a list of valid two factor providers for a user.

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

Syntax

public virtual Task<IList<string>> GetValidTwoFactorProvidersAsync(
    TKey userId
)
public:
virtual Task<IList<String^>^>^ GetValidTwoFactorProvidersAsync(
    TKey userId
)
abstract GetValidTwoFactorProvidersAsync : 
        userId:'TKey -> Task<IList<string>>
override GetValidTwoFactorProvidersAsync : 
        userId:'TKey -> Task<IList<string>>
Public Overridable Function GetValidTwoFactorProvidersAsync (
    userId As TKey
) As Task(Of IList(Of String))

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task<IList<String>>

The task representing the asynchronous operation.

See Also

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

Return to top