ValueWebSocketReceiveResult 结构

定义

表示对 ReceiveAsync(Memory<Byte>, CancellationToken) 执行单个 WebSocket 操作所得到的结果。Represents the result of performing a single ReceiveAsync(Memory<Byte>, CancellationToken) operation on a WebSocket.

public value class ValueWebSocketReceiveResult
public struct ValueWebSocketReceiveResult
type ValueWebSocketReceiveResult = struct
Public Structure ValueWebSocketReceiveResult
继承
ValueWebSocketReceiveResult

构造函数

ValueWebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

初始化 ValueWebSocketReceiveResult 结构的新实例。Initializes a new instance of the ValueWebSocketReceiveResult struct. 此结构的实例表示对 执行单个ReceiveAsyncWebSocket 操作所得到的结果。An instance of this struct represents the result of performing a single ReceiveAsync operation on a WebSocket.

属性

Count

获取 WebSocket 收到的字节数。Gets the number of bytes that the WebSocket received.

EndOfMessage

指示是否已完整收到该消息。Gets whether the message has been received completely.

MessageType

获取当前消息的类型。Gets the type of the current message.

适用于