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
LeaseThe 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
LeaseCannotBeAcquiredException(SerializationInfo, StreamingContext)
Initializes a new instance of the LeaseCannotBeAcquiredException class using specified information and context.
protected LeaseCannotBeAcquiredException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe serialized information about the exception.
context
StreamingContextThe 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
stringThe 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
stringThe message associated with the error.
innerException
ExceptionThe 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
SerializationInfoThe SerializationInfo object to populate with data.
context
StreamingContextThe destination (see StreamingContext) for this serialization.