SALES: 1-800-867-1380

MessageReceiver.Abandon Method (Guid)

Discards the message and relinquishes the message lock ownership.

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

public void Abandon(
	Guid lockToken


Type: System.Guid
The lock token bound to the locked message instance to abandon.

When the message receiver fails to get the message from the queue or topic, this method should be called. The Service Bus will increment the delivery count of the message. The message receiver now can either attempt to receive the message again or move it to the dead-letter queue.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft