SALES: 1-800-867-1380

MessageReceiver.Defer Method (Guid)


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

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public void Defer(
	Guid lockToken


Type: System.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.

Exception Condition

Receive context is null.

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft