SALES: 1-800-867-1380

BrokeredMessage.EndDeadLetter Method (IAsyncResult)


Ends an asynchronous request to move the message to the dead letter queue.

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

public void EndDeadLetter(
	IAsyncResult result


Type: System.IAsyncResult

An IAsyncResult that references the asynchronous request to dead letter message.

Exception Condition

Thrown if an incorrect result is provided. The result object passed to EndDeadLetter must be the one returned from the matching BeginDeadLetter or passed to the callback provided to BeginDeadLetter.


Thrown if invoked with a null result.


Thrown when the queue or subscription that receives the message is no longer present in the message server.


Thrown when the operation times out. Timeout period is initialized through the MessagingFactorySettings. You may need to increase the value of OperationTimeout to avoid this exception if timeout value is relatively low.


Thrown if the lock on the message has expired. LockDuration is an entity-wide setting and can be initialized through LockDuration and LockDuration for Queues and Subscriptions respectively.


Thrown if the lock on the session has expired. Session lock duration is the same as message LockDuration and is an entity-wide setting. It can be initialized through LockDuration and LockDuration for Queues and Subscriptions respectively.


Thrown when invoked on a message that has not been received in peek-lock mode.


When messaging entity the message was received from has been deleted.


When the security token provided by the TokenProvider does not contain the claims to perform this operation.


When the number of concurrent connections to an entity exceed the maximum allowed value.


When service bus service is busy and is unable process the request.

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