共用方式為


WebSocketReceiveResult 建構函式

定義

建立 WebSocketReceiveResult 的執行個體。

多載

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

建立 WebSocketReceiveResult 類別的執行個體。

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean, Nullable<WebSocketCloseStatus>, String)

建立 WebSocketReceiveResult 類別的執行個體。

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

來源:
WebSocketReceiveResult.cs
來源:
WebSocketReceiveResult.cs
來源:
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)

來源:
WebSocketReceiveResult.cs
來源:
WebSocketReceiveResult.cs
來源:
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 的描述。

適用於