你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LeaseLostException 构造函数

定义

重载

LeaseLostException()

使用默认值初始化 LeaseLostException 类的新实例。

LeaseLostException(Lease)

使用指定的租约初始化 类的新实例 LeaseLostException

LeaseLostException(String)

使用指定的错误消息初始化 类的新实例 LeaseLostException

LeaseLostException(Lease, Exception)

使用指定的租约和导致异常的错误初始化 类的新实例 LeaseLostException

LeaseLostException(SerializationInfo, StreamingContext)

使用指定的信息和上下文初始化 类的新实例 LeaseLostException

LeaseLostException(String, Exception)

使用指定的错误消息和内部异常初始化 类的新实例 LeaseLostException

LeaseLostException()

使用默认值初始化 LeaseLostException 类的新实例。

public LeaseLostException ();
Public Sub New ()

适用于

LeaseLostException(Lease)

使用指定的租约初始化 类的新实例 LeaseLostException

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)

参数

lease
Lease

消息传送租约。

适用于

LeaseLostException(String)

使用指定的错误消息初始化 类的新实例 LeaseLostException

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

参数

message
String

与错误关联的消息。

适用于

LeaseLostException(Lease, Exception)

使用指定的租约和导致异常的错误初始化 类的新实例 LeaseLostException

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)

参数

lease
Lease

消息传送租约。

innerException
Exception

导致异常的错误。

适用于

LeaseLostException(SerializationInfo, StreamingContext)

使用指定的信息和上下文初始化 类的新实例 LeaseLostException

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)

参数

info
SerializationInfo

有关异常的序列化信息。

context
StreamingContext

关于来源和目标的上下文信息

适用于

LeaseLostException(String, Exception)

使用指定的错误消息和内部异常初始化 类的新实例 LeaseLostException

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)

参数

message
String

与错误关联的消息。

innerException
Exception

导致异常的错误。

适用于