Share via


SendEventBatchFailedEventArgs Constructor

Definition

Initializes a new instance of the SendEventBatchFailedEventArgs class.

public SendEventBatchFailedEventArgs (System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> eventBatch, Exception exception, string partitionId, System.Threading.CancellationToken cancellationToken = default);
new Azure.Messaging.EventHubs.Producer.SendEventBatchFailedEventArgs : System.Collections.Generic.IReadOnlyList<Azure.Messaging.EventHubs.EventData> * Exception * string * System.Threading.CancellationToken -> Azure.Messaging.EventHubs.Producer.SendEventBatchFailedEventArgs
Public Sub New (eventBatch As IReadOnlyList(Of EventData), exception As Exception, partitionId As String, Optional cancellationToken As CancellationToken = Nothing)

Parameters

eventBatch
IReadOnlyList<EventData>

The set of events that were in the batch that failed to publish.

exception
Exception

The exception that occurred when trying to publish the batch.

partitionId
String

The identifier of the partition to which the batch was being published.

cancellationToken
CancellationToken

A CancellationToken instance to signal the request to cancel the operation.

Applies to