Share via


LeaseCannotBeAcquiredException Constructors

Definition

Overloads

LeaseCannotBeAcquiredException()

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

LeaseCannotBeAcquiredException(Lease)

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

LeaseCannotBeAcquiredException(String)

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

LeaseCannotBeAcquiredException(Lease, Exception)

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

LeaseCannotBeAcquiredException(SerializationInfo, StreamingContext)

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

LeaseCannotBeAcquiredException(String, Exception)

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

LeaseCannotBeAcquiredException()

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

public LeaseCannotBeAcquiredException ();
Public Sub New ()

Applies to

LeaseCannotBeAcquiredException(Lease)

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

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

Parameters

lease
Lease

The messaging lease.

Applies to

LeaseCannotBeAcquiredException(String)

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

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

Parameters

message
String

The message associated with the error.

Applies to

LeaseCannotBeAcquiredException(Lease, Exception)

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

public LeaseCannotBeAcquiredException (Microsoft.ServiceBus.Messaging.Lease lease, Exception innerException);
new Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException : Microsoft.ServiceBus.Messaging.Lease * Exception -> Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException
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

LeaseCannotBeAcquiredException(SerializationInfo, StreamingContext)

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

protected LeaseCannotBeAcquiredException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException
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

LeaseCannotBeAcquiredException(String, Exception)

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

public LeaseCannotBeAcquiredException (string message, Exception innerException);
new Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException : string * Exception -> Microsoft.ServiceBus.Messaging.LeaseCannotBeAcquiredException
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