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

MessageReceiver.OnDeadLetter 方法

定义

执行移动到死信队列操作。

protected virtual void OnDeadLetter (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, System.Collections.Generic.IEnumerable<Guid> lockTokens, System.Collections.Generic.IDictionary<string,object> propertiesToModify, string deadLetterReason, string deadLetterErrorDescription, TimeSpan timeout);
abstract member OnDeadLetter : Microsoft.ServiceBus.Tracing.TrackingContext * seq<Guid> * System.Collections.Generic.IDictionary<string, obj> * string * string * TimeSpan -> unit
override this.OnDeadLetter : Microsoft.ServiceBus.Tracing.TrackingContext * seq<Guid> * System.Collections.Generic.IDictionary<string, obj> * string * string * TimeSpan -> unit
Protected Overridable Sub OnDeadLetter (trackingContext As TrackingContext, lockTokens As IEnumerable(Of Guid), propertiesToModify As IDictionary(Of String, Object), deadLetterReason As String, deadLetterErrorDescription As String, timeout As TimeSpan)

参数

trackingContext
TrackingContext

要使用的 TrackingContext。

lockTokens
IEnumerable<Guid>

锁标记。

propertiesToModify
IDictionary<String,Object>
deadLetterReason
String

消息死胡同的原因。

deadLetterErrorDescription
String

消息死转的说明信息。

timeout
TimeSpan

超时。

适用于