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

 

Confirms the user e-mail with confirmation token.

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

Syntax

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

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The user e-mail to confirm.

See Also

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

Return to top