共用方式為


LeaseLostException Constructors

Definition

Overloads

LeaseLostException()

Initializes a new instance of the LeaseLostException class.

LeaseLostException(ILease)

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

LeaseLostException(String)

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

LeaseLostException(SerializationInfo, StreamingContext)

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

LeaseLostException(String, Exception)

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

LeaseLostException(ILease, Exception, Boolean)

Initializes a new instance of the LeaseLostException class using the specified lease, inner exception, and a flag indicating whether lease is gone.

LeaseLostException()

Initializes a new instance of the LeaseLostException class.

public LeaseLostException ();
Public Sub New ()

Applies to

LeaseLostException(ILease)

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

public LeaseLostException (Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease lease);
new Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException : Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease -> Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException
Public Sub New (lease As ILease)

Parameters

lease
ILease

Instance of a lost lease.

Applies to

LeaseLostException(String)

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

public LeaseLostException (string message);
new Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException : string -> Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException
Public Sub New (message As String)

Parameters

message
String

The exception error message.

Applies to

LeaseLostException(SerializationInfo, StreamingContext)

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

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

Parameters

info
SerializationInfo

The SerializationInfo object that holds serialized object data for the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

LeaseLostException(String, Exception)

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

public LeaseLostException (string message, Exception innerException);
new Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException : string * Exception -> Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The exception error message.

innerException
Exception

The inner exception.

Applies to

LeaseLostException(ILease, Exception, Boolean)

Initializes a new instance of the LeaseLostException class using the specified lease, inner exception, and a flag indicating whether lease is gone.

public LeaseLostException (Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease lease, Exception innerException, bool isGone);
new Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException : Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease * Exception * bool -> Microsoft.Azure.Documents.ChangeFeedProcessor.Exceptions.LeaseLostException
Public Sub New (lease As ILease, innerException As Exception, isGone As Boolean)

Parameters

lease
ILease

Instance of a lost lease.

innerException
Exception

The inner exception.

isGone
Boolean

Whether lease doesn't exist.

Applies to