This topic has not yet been rated - Rate this topic

MessageLockLostException Class

The exception that is thrown to signal message lock lost errors.

System::Object
  System::Exception
    Microsoft.ServiceBus.Messaging::MessagingException
      Microsoft.ServiceBus.Messaging::MessageLockLostException

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
[SerializableAttribute]
public ref class MessageLockLostException sealed : public MessagingException

The MessageLockLostException type exposes the following members.

  NameDescription
Public methodMessageLockLostException(String)Initializes a new instance of the MessageLockLostException class with a specified error message.
Public methodMessageLockLostException(String, Exception)Initializes a new instance of the MessageLockLostException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Top
  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyDetailGets the detail information of the messaging exception. (Inherited from MessagingException.)
Public propertyHelpLink (Inherited from Exception.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyIsTransientGets a value indicating whether the exception is transient. Check this property to determine if the operation should be retried. (Inherited from MessagingException.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Public propertyTimestampGets or sets the time at which the messaging exception occurred. (Inherited from MessagingException.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataPopulates the serialization information with data about the exception. (Inherited from MessagingException.)
Public methodGetType (Inherited from Exception.)
Public methodToString (Inherited from Exception.)
Top

If a message takes longer to process than the lock duration set on a queue or subscription, its visibility lock will time out and the message will again become available to the consumers of the queue or subscription. If you attempt to complete or abandon such a message, you may receive this exception, indicating that there is no valid lock found for the given message.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.