SALES: 1-800-867-1380

MessageReceiver.DeadLetterAsync Method (Guid, String, String)

Asynchronously moves the undelivered message to the dead letter queue.

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

'Declaration
Public Function DeadLetterAsync ( _
	lockToken As Guid, _
	deadLetterReason As String, _
	deadLetterErrorDescription As String _
) As Task
'Usage
Dim instance As MessageReceiver 
Dim lockToken As Guid 
Dim deadLetterReason As String 
Dim deadLetterErrorDescription As String 
Dim returnValue As Task 

returnValue = instance.DeadLetterAsync(lockToken, _
	deadLetterReason, deadLetterErrorDescription)

Parameters

lockToken
Type: System.Guid
The lock token bound to the locked message instance.
deadLetterReason
Type: System.String
The reason for deadlettering the message.
deadLetterErrorDescription
Type: System.String
The error description for deadlettering the message.

Return Value

Type: System.Threading.Tasks.Task
The asynchronous operation.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft