BrokeredMessage.Abandon BrokeredMessage.Abandon BrokeredMessage.Abandon BrokeredMessage.Abandon BrokeredMessage.Abandon BrokeredMessage.Abandon Method

Definition

Overloads

Abandon() Abandon() Abandon() Abandon() Abandon() Abandon()

Abandons the lock on a peek-locked message.

Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>)

Abandons the lock on a peek-locked message.

Abandon() Abandon() Abandon() Abandon() Abandon() Abandon()

Abandons the lock on a peek-locked message.

public:
 void Abandon();
public:
 void Abandon();
void Abandon();
public void Abandon ();
member this.Abandon : unit -> unit
Public Sub Abandon ()
Exceptions

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

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.

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.

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

Remarks

This operation should only be exercised on a message received in peek-lock mode.

Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>) Abandon(IDictionary<String,Object>)

Abandons the lock on a peek-locked message.

public:
 void Abandon(System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ propertiesToModify);
public void Abandon (System.Collections.Generic.IDictionary<string,object> propertiesToModify);
member this.Abandon : System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub Abandon (propertiesToModify As IDictionary(Of String, Object))
Parameters
propertiesToModify
IDictionary<String,Object>

The key-value pair collection of properties to modify.

Exceptions

Thrown when 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.

Remarks

This operation should only be exercised on a message received in peek-lock mode.

Applies to