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

 

Sets a user e-mail.

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

Syntax

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

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The task representing the asynchronous operation.

See Also

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

Return to top