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