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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET