您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessageReceiver.Defer Method

Definition

Overloads

Defer(Guid)

Indicates that the receiver wants to defer the processing for the message.

Defer(Guid, IDictionary<String,Object>)

Indicates that the receiver wants to defer the processing for the message.

Defer(Guid)

Indicates that the receiver wants to defer the processing for the message.

public void Defer (Guid lockToken);
Parameters
lockToken
Guid

The lock token of the BrokeredMessage. This is only available when a message is received in peek-lock mode. The lock token is used internally to complete or abandon a message.

Exceptions
Microsoft.ServiceBus.Common.Fx.Exception

Receive context is null.

Remarks

Before deferring user should set aside the message receipt for later retrieval.

Defer(Guid, IDictionary<String,Object>)

Indicates that the receiver wants to defer the processing for the message.

public void Defer (Guid lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify);
Parameters
lockToken
Guid

The lock token.

propertiesToModify
IDictionary<String,Object>

The properties to modify.

Applies to