SendEventBatchFailedEventArgs Constructor
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET