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

EventHubsException 构造函数

定义

重载

EventHubsException(Boolean, String)

初始化 EventHubsException 类的新实例。

EventHubsException(Boolean, String, EventHubsException+FailureReason)

初始化 EventHubsException 类的新实例。

EventHubsException(Boolean, String, String)

初始化 EventHubsException 类的新实例。

EventHubsException(String, String, EventHubsException+FailureReason)

初始化 类的新实例 EventHubsException ,使用 reason 检测它是否应为暂时性实例。

EventHubsException(Boolean, String, String, EventHubsException+FailureReason)

初始化 EventHubsException 类的新实例。

EventHubsException(Boolean, String, String, Exception)

初始化 EventHubsException 类的新实例。

EventHubsException(Boolean, String, String, EventHubsException+FailureReason, Exception)

初始化 EventHubsException 类的新实例。

EventHubsException(Boolean, String)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName);
new Azure.Messaging.EventHubs.EventHubsException : bool * string -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

适用于

EventHubsException(Boolean, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, reason As EventHubsException.FailureReason)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

reason
EventHubsException.FailureReason

导致异常的失败原因。

适用于

EventHubsException(Boolean, String, String)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName, string message);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

message
String

解释异常原因的错误消息。

适用于

EventHubsException(String, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 类的新实例 EventHubsException ,使用 reason 检测它是否应为暂时性实例。

public EventHubsException (string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (eventHubName As String, message As String, reason As EventHubsException.FailureReason)

参数

eventHubName
String

异常所关联的事件中心的名称。

message
String

解释异常原因的错误消息。

reason
EventHubsException.FailureReason

导致异常的失败原因。

适用于

EventHubsException(Boolean, String, String, EventHubsException+FailureReason)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, reason As EventHubsException.FailureReason)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

message
String

解释异常原因的错误消息。

reason
EventHubsException.FailureReason

导致异常的失败原因。

适用于

EventHubsException(Boolean, String, String, Exception)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName, string message, Exception innerException);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Exception -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, innerException As Exception)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常;如果未指定任何内部异常,则为 null 引用。

适用于

EventHubsException(Boolean, String, String, EventHubsException+FailureReason, Exception)

Source:
EventHubsException.cs
Source:
EventHubsException.cs

初始化 EventHubsException 类的新实例。

public EventHubsException (bool isTransient, string eventHubName, string message, Azure.Messaging.EventHubs.EventHubsException.FailureReason reason, Exception innerException);
new Azure.Messaging.EventHubs.EventHubsException : bool * string * string * Azure.Messaging.EventHubs.EventHubsException.FailureReason * Exception -> Azure.Messaging.EventHubs.EventHubsException
Public Sub New (isTransient As Boolean, eventHubName As String, message As String, reason As EventHubsException.FailureReason, innerException As Exception)

参数

isTransient
Boolean

true 如果应将异常视为暂时性,则为 ;否则为 false

eventHubName
String

异常所关联的事件中心的名称。

message
String

解释异常原因的错误消息。

reason
EventHubsException.FailureReason

导致异常的失败原因。

innerException
Exception

导致当前异常的异常;如果未指定任何内部异常,则为 null 引用。

适用于