ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean) Constructor

Definición

Inicializa una nueva instancia del struct ValueWebSocketReceiveResult.Initializes a new instance of the ValueWebSocketReceiveResult struct. Una instancia de esta estructura representa el resultado de realizar una única operación ReceiveAsync en un elemento WebSocket.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)

Parámetros

count
Int32

El número de bytes que ha recibido WebSocket.The number of bytes that the WebSocket received.

messageType
WebSocketMessageType

Uno de los valores de enumeración que indica si el mensaje actual es un mensaje UTF-8 o binario.One of the enumeration values that indicates whether the current message is a UTF-8 message or a binary message.

endOfMessage
Boolean

true para indicar que el mensaje se ha recibido completamente; en caso contrario, false.true to indicate the messsage has been received completely; otherwise, false.

Se aplica a