ConnectionLostException 建構函式

定義

多載

ConnectionLostException()

初始化 ConnectionLostException 類別的新執行個體。

ConnectionLostException(String)

初始化 ConnectionLostException 類別的新執行個體。

ConnectionLostException(SerializationInfo, StreamingContext)

初始化 ConnectionLostException 類別的新執行個體。

ConnectionLostException(String, Exception)

初始化 ConnectionLostException 類別的新執行個體。

ConnectionLostException()

初始化 ConnectionLostException 類別的新執行個體。

public ConnectionLostException ();
Public Sub New ()

適用於

ConnectionLostException(String)

初始化 ConnectionLostException 類別的新執行個體。

public ConnectionLostException (string message);
public ConnectionLostException (string? message);
new StreamJsonRpc.ConnectionLostException : string -> StreamJsonRpc.ConnectionLostException
Public Sub New (message As String)

參數

message
String

描述錯誤的訊息。

適用於

ConnectionLostException(SerializationInfo, StreamingContext)

初始化 ConnectionLostException 類別的新執行個體。

protected ConnectionLostException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new StreamJsonRpc.ConnectionLostException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> StreamJsonRpc.ConnectionLostException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

序列化資訊。

context
StreamingContext

串流內容。

適用於

ConnectionLostException(String, Exception)

初始化 ConnectionLostException 類別的新執行個體。

public ConnectionLostException (string message, Exception innerException);
public ConnectionLostException (string? message, Exception? innerException);
new StreamJsonRpc.ConnectionLostException : string * Exception -> StreamJsonRpc.ConnectionLostException
Public Sub New (message As String, innerException As Exception)

參數

message
String

解釋例外狀況原因的錯誤訊息。

innerException
Exception

造成目前例外狀況的例外狀況,如果未指定內部例外狀況,則為 Null 參考 (Visual Basic 中的 Nothing)。

適用於