EventHubsClient.SendEventAsync Method

Definition

Send event

public virtual System.Threading.Tasks.Task SendEventAsync(string eventHubName, Azure.Connectors.Sdk.Eventhubs.Models.SendEvent input, string partitionKey = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEventAsync : string * Azure.Connectors.Sdk.Eventhubs.Models.SendEvent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SendEventAsync : string * Azure.Connectors.Sdk.Eventhubs.Models.SendEvent * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SendEventAsync (eventHubName As String, input As SendEvent, Optional partitionKey As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

eventHubName
String

Event Hub name

input
SendEvent

The request body.

partitionKey
String

Partition key

cancellationToken
CancellationToken

Cancellation token.

Returns

Remarks

Send event.

Applies to