你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SendEventBatchFailedEventArgs 构造函数

定义

初始化 SendEventBatchFailedEventArgs 类的新实例。

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)

参数

eventBatch
IReadOnlyList<EventData>

批处理中未能发布的事件集。

exception
Exception

尝试发布批处理时发生的异常。

partitionId
String

要向其发布批处理的分区的标识符。

cancellationToken
CancellationToken

一个 CancellationToken 实例,用于向请求发出取消操作的信号。

适用于