Abandon Method
Collapse the table of content
Expand the table of content

BrokeredMessage.Abandon Method ()

 

Abandons the lock on a peek-locked message.

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

public void Abandon()

Exception Condition
ObjectDisposedException

Thrown when the message is in the disposed state or the receiver with which the message was received is in disposed state.

ServerBusyException

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

QuotaExceededException

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

InvalidOperationException

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

UnauthorizedAccessException

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

SessionLockLostException

When this message was received from a Session and the lock associated with the session was lost.

MessageLockLostException

When the lock associated with this message was lost or the lock token was not found.

MessagingEntityNotFoundException

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

TimeoutException

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

MessagingCommunicationException

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

Return to top
Show:
© 2016 Microsoft