ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean) 构造函数

定义

初始化 ValueWebSocketReceiveResult 结构的新实例。 此结构的实例表示对 WebSocket执行单个ReceiveAsync操作的结果。

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

参数

count
Int32

WebSocket 收到的字节数。

messageType
WebSocketMessageType

枚举值之一,指示当前消息是 UTF-8 消息还是二进制消息。

endOfMessage
Boolean

true,指示已完整收到消息;否则为 false

适用于