WebSocketReceiveResult 构造函数

定义

创建 WebSocketReceiveResult 的实例。

重载

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

创建 WebSocketReceiveResult 类的实例。

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean, Nullable<WebSocketCloseStatus>, String)

创建 WebSocketReceiveResult 类的实例。

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

Source:
WebSocketReceiveResult.cs
Source:
WebSocketReceiveResult.cs
Source:
WebSocketReceiveResult.cs

创建 WebSocketReceiveResult 类的实例。

public:
 WebSocketReceiveResult(int count, System::Net::WebSockets::WebSocketMessageType messageType, bool endOfMessage);
public WebSocketReceiveResult (int count, System.Net.WebSockets.WebSocketMessageType messageType, bool endOfMessage);
new System.Net.WebSockets.WebSocketReceiveResult : int * System.Net.WebSockets.WebSocketMessageType * bool -> System.Net.WebSockets.WebSocketReceiveResult
Public Sub New (count As Integer, messageType As WebSocketMessageType, endOfMessage As Boolean)

参数

count
Int32

收到的字节数。

messageType
WebSocketMessageType

收到的消息的类型。

endOfMessage
Boolean

指示是否是最后一条消息。

适用于

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean, Nullable<WebSocketCloseStatus>, String)

Source:
WebSocketReceiveResult.cs
Source:
WebSocketReceiveResult.cs
Source:
WebSocketReceiveResult.cs

创建 WebSocketReceiveResult 类的实例。

public:
 WebSocketReceiveResult(int count, System::Net::WebSockets::WebSocketMessageType messageType, bool endOfMessage, Nullable<System::Net::WebSockets::WebSocketCloseStatus> closeStatus, System::String ^ closeStatusDescription);
public WebSocketReceiveResult (int count, System.Net.WebSockets.WebSocketMessageType messageType, bool endOfMessage, System.Net.WebSockets.WebSocketCloseStatus? closeStatus, string? closeStatusDescription);
public WebSocketReceiveResult (int count, System.Net.WebSockets.WebSocketMessageType messageType, bool endOfMessage, System.Net.WebSockets.WebSocketCloseStatus? closeStatus, string closeStatusDescription);
new System.Net.WebSockets.WebSocketReceiveResult : int * System.Net.WebSockets.WebSocketMessageType * bool * Nullable<System.Net.WebSockets.WebSocketCloseStatus> * string -> System.Net.WebSockets.WebSocketReceiveResult
Public Sub New (count As Integer, messageType As WebSocketMessageType, endOfMessage As Boolean, closeStatus As Nullable(Of WebSocketCloseStatus), closeStatusDescription As String)

参数

count
Int32

收到的字节数。

messageType
WebSocketMessageType

收到的消息的类型。

endOfMessage
Boolean

指示是否是最后一条消息。

closeStatus
Nullable<WebSocketCloseStatus>

指示连接的 WebSocketCloseStatus

closeStatusDescription
String

closeStatus 的描述。

适用于