Table of Contents

Class LeaseLostException

Namespace
Microsoft.ServiceBus.Messaging
Assembly
Microsoft.ServiceBus.dll

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

public class LeaseLostException : Exception, ISerializable
Inheritance
LeaseLostException
Implements
Inherited Members

Constructors

LeaseLostException()

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

public LeaseLostException()

LeaseLostException(Lease)

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

public LeaseLostException(Lease lease)

Parameters

lease Lease

The messaging lease.

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)

Parameters

lease Lease

The messaging lease.

innerException Exception

The error that caused the exception.

LeaseLostException(SerializationInfo, StreamingContext)

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

protected LeaseLostException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The serialized information about the exception.

context StreamingContext

The contextual information about the source or destination.

LeaseLostException(string)

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

public LeaseLostException(string message)

Parameters

message string

The message associated with the error.

LeaseLostException(string, Exception)

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

public LeaseLostException(string message, Exception innerException)

Parameters

message string

The message associated with the error.

innerException Exception

The error that caused the exception.

Properties

Lease

Gets or sets the service lease.

public Lease Lease { get; }

Property Value

Lease

The service lease.

Methods

GetObjectData(SerializationInfo, StreamingContext)

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

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo object to populate with data.

context StreamingContext

The destination (see StreamingContext) for this serialization.