다음을 통해 공유


IMessageReceiver.DeferAsync(String, IDictionary<String,Object>) Method

Definition

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

public System.Threading.Tasks.Task DeferAsync (string lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify = default);
abstract member DeferAsync : string * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function DeferAsync (lockToken As String, Optional propertiesToModify As IDictionary(Of String, Object) = Nothing) As Task

Parameters

lockToken
String

The lock token of the Message.

propertiesToModify
IDictionary<String,Object>

The properties of the message to modify while deferring the message.

Returns

Remarks

A lock token can be found in LockToken, only when ReceiveMode is set to PeekLock. In order to receive this message again in the future, you will need to save the SequenceNumber and receive it using ReceiveDeferredMessageAsync(Int64). Deferring messages does not impact message's expiration, meaning that deferred messages can still expire. This operation can only be performed on messages that were received by this receiver.

Applies to