共用方式為


LeaseLostException Constructors

Definition

Overloads

LeaseLostException()

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

LeaseLostException(Lease)

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

LeaseLostException(String)

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

LeaseLostException(Lease, Exception)

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

LeaseLostException(SerializationInfo, StreamingContext)

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

LeaseLostException(String, Exception)

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

LeaseLostException()

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

public LeaseLostException ();
Public Sub New ()

Applies to

LeaseLostException(Lease)

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

public LeaseLostException (Microsoft.ServiceBus.Messaging.Lease lease);
new Microsoft.ServiceBus.Messaging.LeaseLostException : Microsoft.ServiceBus.Messaging.Lease -> Microsoft.ServiceBus.Messaging.LeaseLostException
Public Sub New (lease As Lease)

Parameters

lease
Lease

The messaging lease.

Applies to

LeaseLostException(String)

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

public LeaseLostException (string message);
new Microsoft.ServiceBus.Messaging.LeaseLostException : string -> Microsoft.ServiceBus.Messaging.LeaseLostException
Public Sub New (message As String)

Parameters

message
String

The message associated with the error.

Applies to

LeaseLostException(Lease, Exception)

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

public LeaseLostException (Microsoft.ServiceBus.Messaging.Lease lease, Exception innerException);
new Microsoft.ServiceBus.Messaging.LeaseLostException : Microsoft.ServiceBus.Messaging.Lease * Exception -> Microsoft.ServiceBus.Messaging.LeaseLostException
Public Sub New (lease As Lease, innerException As Exception)

Parameters

lease
Lease

The messaging lease.

innerException
Exception

The error that caused the exception.

Applies to

LeaseLostException(SerializationInfo, StreamingContext)

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

protected LeaseLostException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.ServiceBus.Messaging.LeaseLostException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.ServiceBus.Messaging.LeaseLostException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialized information about the exception.

context
StreamingContext

The contextual information about the source or destination.

Applies to

LeaseLostException(String, Exception)

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

public LeaseLostException (string message, Exception innerException);
new Microsoft.ServiceBus.Messaging.LeaseLostException : string * Exception -> Microsoft.ServiceBus.Messaging.LeaseLostException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message associated with the error.

innerException
Exception

The error that caused the exception.

Applies to