Share via


WebSocketException 构造函数

定义

创建 WebSocketException 类的实例。

重载

WebSocketException()

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, Int32, String, Exception)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, String, Exception)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, Int32, String)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, Int32, Exception)

创建 WebSocketException 类的实例。

WebSocketException(String, Exception)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, Int32)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, String)

创建 WebSocketException 类的实例。

WebSocketException(Int32, String)

创建 WebSocketException 类的实例。

WebSocketException(Int32, Exception)

创建 WebSocketException 类的实例。

WebSocketException(String)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError)

创建 WebSocketException 类的实例。

WebSocketException(Int32)

创建 WebSocketException 类的实例。

WebSocketException(WebSocketError, Exception)

创建 WebSocketException 类的实例。

WebSocketException()

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 WebSocketException 类的实例。

public:
 WebSocketException();
public WebSocketException ();
Public Sub New ()

适用于

WebSocketException(WebSocketError, Int32, String, Exception)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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)

Source:
WebSocketException.cs
Source:
WebSocketException.cs
Source:
WebSocketException.cs

创建 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

指示引发当前异常的上一个异常。

适用于