UserManager<TUser, TKey>.GenerateTwoFactorTokenAsync Method (TKey, String)

 

Gets a token for a specific two factor provider.

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

Syntax

public virtual Task<string> GenerateTwoFactorTokenAsync(
    TKey userId,
    string twoFactorProvider
)
public:
virtual Task<String^>^ GenerateTwoFactorTokenAsync(
    TKey userId,
    String^ twoFactorProvider
)
abstract GenerateTwoFactorTokenAsync : 
        userId:'TKey *
        twoFactorProvider:string -> Task<string>
override GenerateTwoFactorTokenAsync : 
        userId:'TKey *
        twoFactorProvider:string -> Task<string>
Public Overridable Function GenerateTwoFactorTokenAsync (
    userId As TKey,
    twoFactorProvider As String
) As Task(Of String)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The task representing the asynchronous operation.

See Also

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

Return to top