EventHubClient.SendAsync(EventData) Method

Definition

Asynchronously sends event data to an Event Hub.

public System.Threading.Tasks.Task SendAsync (Microsoft.ServiceBus.Messaging.EventData data);
member this.SendAsync : Microsoft.ServiceBus.Messaging.EventData -> System.Threading.Tasks.Task
Public Function SendAsync (data As EventData) As Task

Parameters

data
EventData

The EventData to send.

Returns

Task

The task representing the asynchronous operation.

Remarks

Any EventData instance send using this method must have the PartitionKey set.

Applies to