Redigera

Dela via


ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean) Constructor

Definition

Initializes a new instance of the ValueWebSocketReceiveResult struct. An instance of this struct represents the result of performing a single ReceiveAsync operation on a WebSocket.

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)

Parameters

count
Int32

The number of bytes that the WebSocket received.

messageType
WebSocketMessageType

One of the enumeration values that indicates whether the current message is a UTF-8 message or a binary message.

endOfMessage
Boolean

true to indicate the messsage has been received completely; otherwise, false.

Applies to