LeaseLostException LeaseLostException Class

Represents an exception that occurs when the service lease has been lost.

Syntax

Declaration

[Serializable]
public class LeaseLostException : Exception, ISerializable, _Exception<Serializable>
Public Class LeaseLostException
    Inherits Exception
    Implements ISerializable, _Exception

Inheritance Hierarchy

Constructors summary

Initializes a new instance of the LeaseLostException class using default values.

Initializes a new instance of the LeaseLostException class using specified lease.

Initializes a new instance of the LeaseLostException class using specified lease and the error that caused the exception.

Initializes a new instance of the LeaseLostException class using specified information and context.

Initializes a new instance of the LeaseLostException class using specified error message.

Initializes a new instance of the LeaseLostException class using specified error message and inner exception.

Properties summary

Gets or sets the service lease.

Methods summary

Populates a SerializationInfo with the data needed to serialize the target object.

Constructors

  • LeaseLostException()
    LeaseLostException()

    Initializes a new instance of the LeaseLostException class using default values.

    public LeaseLostException()Public Sub New
  • LeaseLostException(Lease)
    LeaseLostException(Lease)

    Initializes a new instance of the LeaseLostException class using specified lease.

    public LeaseLostException(Lease lease)Public Sub New(lease As Lease)

    Parameters

  • LeaseLostException(Lease, Exception)
    LeaseLostException(Lease, Exception)

    Initializes a new instance of the LeaseLostException class using specified lease and the error that caused the exception.

    public LeaseLostException(Lease lease, Exception innerException)Public Sub New(lease As Lease, innerException As Exception)

    Parameters

  • LeaseLostException(SerializationInfo, StreamingContext)
    LeaseLostException(SerializationInfo, StreamingContext)

    Initializes a new instance of the LeaseLostException class using specified information and context.

    protected LeaseLostException(SerializationInfo info, StreamingContext context)Protected Sub New(info As SerializationInfo, context As StreamingContext)

    Parameters

  • LeaseLostException(String)
    LeaseLostException(String)

    Initializes a new instance of the LeaseLostException class using specified error message.

    public LeaseLostException(string message)Public Sub New(message As String)

    Parameters

    • message

      The message associated with the error.

  • LeaseLostException(String, Exception)
    LeaseLostException(String, Exception)

    Initializes a new instance of the LeaseLostException class using specified error message and inner exception.

    public LeaseLostException(string message, Exception innerException)Public Sub New(message As String, innerException As Exception)

    Parameters

Properties

  • Lease
    Lease

    Gets or sets the service lease.

    public Lease Lease { get; }Public ReadOnly Property Lease As Lease

    Property Value

Methods

Attributes

System.SerializableAttribute

Details

Namespace

Microsoft.ServiceBus.Messaging

Assembly

Microsoft.ServiceBus.dll