WebSocketException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 WebSocketException 類別的執行個體。
多載
WebSocketException()
建立 WebSocketException 類別的執行個體。
public:
WebSocketException();
public WebSocketException ();
Public Sub New ()
適用於
WebSocketException(WebSocketError, Int32, String, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, int nativeError, System::String ^ message, Exception ^ innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, string? message, Exception? innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, string message, Exception innerException);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * int * string * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, nativeError As Integer, message As String, innerException As Exception)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- nativeError
- Int32
例外狀況的原生錯誤碼。
- message
- String
錯誤的描述。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。
適用於
WebSocketException(WebSocketError, String, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, System::String ^ message, Exception ^ innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, string? message, Exception? innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, string message, Exception innerException);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * string * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, message As String, innerException As Exception)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- message
- String
錯誤的描述。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。
適用於
WebSocketException(WebSocketError, Int32, String)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, int nativeError, System::String ^ message);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, string? message);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, string message);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * int * string -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, nativeError As Integer, message As String)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- nativeError
- Int32
例外狀況的原生錯誤碼。
- message
- String
錯誤的描述。
適用於
WebSocketException(WebSocketError, Int32, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, int nativeError, Exception ^ innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, Exception? innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError, Exception innerException);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * int * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, nativeError As Integer, innerException As Exception)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- nativeError
- Int32
例外狀況的原生錯誤碼。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。
適用於
WebSocketException(String, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::String ^ message, Exception ^ innerException);
public WebSocketException (string? message, Exception? innerException);
public WebSocketException (string message, Exception innerException);
new System.Net.WebSockets.WebSocketException : string * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
錯誤的描述。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。
適用於
WebSocketException(WebSocketError, Int32)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, int nativeError);
public WebSocketException (System.Net.WebSockets.WebSocketError error, int nativeError);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * int -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, nativeError As Integer)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- nativeError
- Int32
例外狀況的原生錯誤碼。
適用於
WebSocketException(WebSocketError, String)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, System::String ^ message);
public WebSocketException (System.Net.WebSockets.WebSocketError error, string? message);
public WebSocketException (System.Net.WebSockets.WebSocketError error, string message);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * string -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, message As String)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- message
- String
錯誤的描述。
適用於
WebSocketException(Int32, String)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(int nativeError, System::String ^ message);
public WebSocketException (int nativeError, string? message);
public WebSocketException (int nativeError, string message);
new System.Net.WebSockets.WebSocketException : int * string -> System.Net.WebSockets.WebSocketException
Public Sub New (nativeError As Integer, message As String)
參數
- nativeError
- Int32
例外狀況的原生錯誤碼。
- message
- String
錯誤的描述。
適用於
WebSocketException(Int32, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(int nativeError, Exception ^ innerException);
public WebSocketException (int nativeError, Exception? innerException);
public WebSocketException (int nativeError, Exception innerException);
new System.Net.WebSockets.WebSocketException : int * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (nativeError As Integer, innerException As Exception)
參數
- nativeError
- Int32
例外狀況的原生錯誤碼。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。
適用於
WebSocketException(String)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::String ^ message);
public WebSocketException (string? message);
public WebSocketException (string message);
new System.Net.WebSockets.WebSocketException : string -> System.Net.WebSockets.WebSocketException
Public Sub New (message As String)
參數
- message
- String
錯誤的描述。
適用於
WebSocketException(WebSocketError)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error);
public WebSocketException (System.Net.WebSockets.WebSocketError error);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
適用於
WebSocketException(Int32)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(int nativeError);
public WebSocketException (int nativeError);
new System.Net.WebSockets.WebSocketException : int -> System.Net.WebSockets.WebSocketException
Public Sub New (nativeError As Integer)
參數
- nativeError
- Int32
例外狀況的原生錯誤碼。
適用於
WebSocketException(WebSocketError, Exception)
建立 WebSocketException 類別的執行個體。
public:
WebSocketException(System::Net::WebSockets::WebSocketError error, Exception ^ innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, Exception? innerException);
public WebSocketException (System.Net.WebSockets.WebSocketError error, Exception innerException);
new System.Net.WebSockets.WebSocketException : System.Net.WebSockets.WebSocketError * Exception -> System.Net.WebSockets.WebSocketException
Public Sub New (error As WebSocketError, innerException As Exception)
參數
- error
- WebSocketError
來自 WebSocketError 列舉的錯誤。
- innerException
- Exception
指出造成目前例外狀況的先前例外狀況。