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

MessageReceiver.DeadLetterAsync 方法

定义

重载

DeadLetterAsync(Guid)

将未传递的消息异步移动到死信队列。

DeadLetterAsync(Guid, IDictionary<String,Object>)

将未传递的消息异步移动到死信队列。

DeadLetterAsync(Guid, String, String)

将未传递的消息异步移动到死信队列。

DeadLetterAsync(Guid)

将未传递的消息异步移动到死信队列。

public System.Threading.Tasks.Task DeadLetterAsync (Guid lockToken);
abstract member DeadLetterAsync : Guid -> System.Threading.Tasks.Task
override this.DeadLetterAsync : Guid -> System.Threading.Tasks.Task
Public Function DeadLetterAsync (lockToken As Guid) As Task

参数

lockToken
Guid

绑定到锁定消息实例的锁定令牌。

返回

异步操作。

适用于

DeadLetterAsync(Guid, IDictionary<String,Object>)

将未传递的消息异步移动到死信队列。

public System.Threading.Tasks.Task DeadLetterAsync (Guid lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify);
abstract member DeadLetterAsync : Guid * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
override this.DeadLetterAsync : Guid * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function DeadLetterAsync (lockToken As Guid, propertiesToModify As IDictionary(Of String, Object)) As Task

参数

lockToken
Guid

绑定到锁定消息实例的锁定令牌。

propertiesToModify
IDictionary<String,Object>

要修改的属性。

返回

异步操作。

适用于

DeadLetterAsync(Guid, String, String)

将未传递的消息异步移动到死信队列。

public System.Threading.Tasks.Task DeadLetterAsync (Guid lockToken, string deadLetterReason, string deadLetterErrorDescription);
abstract member DeadLetterAsync : Guid * string * string -> System.Threading.Tasks.Task
override this.DeadLetterAsync : Guid * string * string -> System.Threading.Tasks.Task
Public Function DeadLetterAsync (lockToken As Guid, deadLetterReason As String, deadLetterErrorDescription As String) As Task

参数

lockToken
Guid

绑定到锁定消息实例的锁定令牌。

deadLetterReason
String

消息死信的原因。

deadLetterErrorDescription
String

对消息进行死信的错误说明。

返回

异步操作。

适用于