MessageReceiver.Defer MessageReceiver.Defer MessageReceiver.Defer MessageReceiver.Defer Method

Definition

Overloads

Defer(Guid) Defer(Guid) Defer(Guid) Defer(Guid)

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

Defer(Guid, IDictionary<String,Object>) Defer(Guid, IDictionary<String,Object>) Defer(Guid, IDictionary<String,Object>) Defer(Guid, IDictionary<String,Object>)

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

Defer(Guid) Defer(Guid) Defer(Guid) Defer(Guid)

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

public:
 virtual void Defer(Guid lockToken);
public void Defer (Guid lockToken);
abstract member Defer : Guid -> unit
override this.Defer : Guid -> unit
Public Sub Defer (lockToken As Guid)
Parameters
lockToken
Guid Guid Guid 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 Microsoft.ServiceBus.Common.Fx.Exception Microsoft.ServiceBus.Common.Fx.Exception 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>) Defer(Guid, IDictionary<String,Object>) Defer(Guid, IDictionary<String,Object>) Defer(Guid, IDictionary<String,Object>)

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

public:
 virtual void Defer(Guid lockToken, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ propertiesToModify);
public void Defer (Guid lockToken, System.Collections.Generic.IDictionary<string,object> propertiesToModify);
abstract member Defer : Guid * System.Collections.Generic.IDictionary<string, obj> -> unit
override this.Defer : Guid * System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub Defer (lockToken As Guid, propertiesToModify As IDictionary(Of String, Object))
Parameters
lockToken
Guid Guid Guid Guid

The lock token.

propertiesToModify
IDictionary<String,Object>

The properties to modify.

Applies to