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

MessageReceiver.OnBeginDeadLetter 方法

定义

在调用 OnDeadLetter 或 BeginDeadLetter 操作时执行。

protected abstract IAsyncResult OnBeginDeadLetter (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, System.Collections.Generic.IEnumerable<Guid> lockTokens, System.Collections.Generic.IDictionary<string,object> propertiesToModify, string deadLetterReason, string deadLetterErrorDescription, bool fromSync, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginDeadLetter : Microsoft.ServiceBus.Tracing.TrackingContext * seq<Guid> * System.Collections.Generic.IDictionary<string, obj> * string * string * bool * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginDeadLetter (trackingContext As TrackingContext, lockTokens As IEnumerable(Of Guid), propertiesToModify As IDictionary(Of String, Object), deadLetterReason As String, deadLetterErrorDescription As String, fromSync As Boolean, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

参数

trackingContext
TrackingContext

由跟踪此操作的事务关联的上下文信息。

lockTokens
IEnumerable<Guid>

绑定到锁定消息实例的锁标记的集合。

propertiesToModify
IDictionary<String,Object>

要修改的属性。

deadLetterReason
String

死信的原因。

deadLetterErrorDescription
String

消息死错的错误说明。

fromSync
Boolean

同步的开始。

timeout
TimeSpan

操作在超时之前等待的时间跨度。

callback
AsyncCallback

一个 AsyncCallback 委托,它引用操作完成时要调用的方法。

state
Object

一个用户定义的对象,其中包含有关异步操作的状态信息。

返回

一个 ,IAsyncResult 它引用异步操作以将未传递的消息移动到死信队列。

适用于