Table of Contents

Class LeaseCannotBeAcquiredException

Namespace
Microsoft.ServiceBus.Messaging
Assembly
Microsoft.ServiceBus.dll
public class LeaseCannotBeAcquiredException : LeaseLostException, ISerializable
Inheritance
LeaseCannotBeAcquiredException
Implements
Inherited Members
Extension Methods

Constructors

LeaseCannotBeAcquiredException()

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

public LeaseCannotBeAcquiredException()

LeaseCannotBeAcquiredException(Lease)

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

public LeaseCannotBeAcquiredException(Lease lease)

Parameters

lease Lease

The messaging lease.

LeaseCannotBeAcquiredException(Lease, Exception)

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

public LeaseCannotBeAcquiredException(Lease lease, Exception innerException)

Parameters

lease Lease

The messaging lease.

innerException Exception

The error that caused the exception.

LeaseCannotBeAcquiredException(SerializationInfo, StreamingContext)

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

protected LeaseCannotBeAcquiredException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The serialized information about the exception.

context StreamingContext

The contextual information about the source or destination.

LeaseCannotBeAcquiredException(string)

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

public LeaseCannotBeAcquiredException(string message)

Parameters

message string

The message associated with the error.

LeaseCannotBeAcquiredException(string, Exception)

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

public LeaseCannotBeAcquiredException(string message, Exception innerException)

Parameters

message string

The message associated with the error.

innerException Exception

The error that caused the exception.

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.