WebSocketReceiveResult 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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
的描述。