WebSocketReceiveResult Constructors

Definition

Creates an instance of WebSocketReceiveResult.

Overloads

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

Creates an instance of the WebSocketReceiveResult class.

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

Creates an instance of the WebSocketReceiveResult class.

WebSocketReceiveResult(Int32, WebSocketMessageType, Boolean)

Creates an instance of the WebSocketReceiveResult class.

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)

Parameters

count
Int32

The number of bytes received.

messageType
WebSocketMessageType

The type of message that was received.

endOfMessage
Boolean

Indicates whether this is the final message.

Applies to

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

Creates an instance of the WebSocketReceiveResult class.

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)

Parameters

count
Int32

The number of bytes received.

messageType
WebSocketMessageType

The type of message that was received.

endOfMessage
Boolean

Indicates whether this is the final message.

closeStatus
Nullable<WebSocketCloseStatus>

Indicates the WebSocketCloseStatus of the connection.

closeStatusDescription
String

The description of closeStatus.

Applies to