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

.NET Framework (current version)
 

Creates an instance of the WebSocketReceiveResult class.

Namespace:   System.Net.WebSockets
Assembly:  System (in System.dll)

public:
WebSocketReceiveResult(
	int count,
	WebSocketMessageType messageType,
	bool endOfMessage,
	Nullable<WebSocketCloseStatus> closeStatus,
	String^ closeStatusDescription
)

Parameters

count
Type: System::Int32

The number of bytes received.

messageType
Type: System.Net.WebSockets::WebSocketMessageType

The type of message that was received.

endOfMessage
Type: System::Boolean

Indicates whether this is the final message.

closeStatus
Type: System::Nullable<WebSocketCloseStatus>

Indicates the WebSocketCloseStatus of the connection.

closeStatusDescription
Type: System::String^

The description of closeStatus.

.NET Framework
Available since 4.5
Return to top
Show: