Share via


EmailServicedata.EmailGetSendResult Method

Definition

Gets the status of the email send operation.

public System.Threading.Tasks.Task EmailGetSendResult (string operationId, string endpoint, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender);
member this.EmailGetSendResult : string * string * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function EmailGetSendResult (operationId As String, endpoint As String, onOk As Func(Of HttpResponseMessage, Task(Of IEmailSendResult), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

operationId
String

ID of the long running operation (GUID) returned from a previous call to send email

endpoint
String

The communication resource, for example https://my-resource.communication.azure.com

onOk
Func<HttpResponseMessage,Task<IEmailSendResult>,Task>

a delegate that is called when the remote service returns 200 (OK).

onDefault
Func<HttpResponseMessage,Task<IErrorResponse>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to