EventHubsClient.SendEventAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.