UserManager<TUser, TKey>.SendEmailAsync Method

Sends an e-mail to the user.

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

Syntax

'Declaration
Public Overridable Function SendEmailAsync ( _
    userId As TKey, _
    subject As String, _
    body As String _
) As Task
'Usage
Dim instance As UserManager 
Dim userId As TKey
Dim subject As String 
Dim body As String 
Dim returnValue As Task 

returnValue = instance.SendEmailAsync(userId, _
    subject, body)
public virtual Task SendEmailAsync(
    TKey userId,
    string subject,
    string body
)
public:
virtual Task^ SendEmailAsync(
    TKey userId, 
    String^ subject, 
    String^ body
)
abstract SendEmailAsync : 
        userId:'TKey * 
        subject:string * 
        body:string -> Task  
override SendEmailAsync : 
        userId:'TKey * 
        subject:string * 
        body:string -> Task
public function SendEmailAsync(
    userId : TKey, 
    subject : String, 
    body : String
) : Task

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity