MessageWebSocketMessageReceivedEventArgs MessageWebSocketMessageReceivedEventArgs MessageWebSocketMessageReceivedEventArgs MessageWebSocketMessageReceivedEventArgs MessageWebSocketMessageReceivedEventArgs Class

Definition

Provides data for a message received event on a MessageWebSocket.

public : sealed class MessageWebSocketMessageReceivedEventArgs : IMessageWebSocketMessageReceivedEventArgs
struct winrt::Windows::Networking::Sockets::MessageWebSocketMessageReceivedEventArgs : IMessageWebSocketMessageReceivedEventArgs
public sealed class MessageWebSocketMessageReceivedEventArgs : IMessageWebSocketMessageReceivedEventArgs
Public NotInheritable Class MessageWebSocketMessageReceivedEventArgs Implements IMessageWebSocketMessageReceivedEventArgs
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The MessageWebSocketMessageReceivedEventArgs is used to receive data on a MessageWebSocket object.

A MessageWebSocket.MessageReceived event occurs on a MessageWebSocket when a message is received. A MessageWebSocketMessageReceivedEventArgs instance is created when the MessageWebSocket.MessageReceived event occurs.

Properties

IsMessageComplete IsMessageComplete IsMessageComplete IsMessageComplete IsMessageComplete

Allow clients to query if a MessageReceived callback indicates the received message is complete or just a partial message.

MessageType MessageType MessageType MessageType MessageType

Gets the type of the message received by a MessageWebSocket object.

Methods

GetDataReader() GetDataReader() GetDataReader() GetDataReader() GetDataReader()

Gets a DataReader object to read incoming data received from the remote network destination on a MessageWebSocket.

GetDataStream() GetDataStream() GetDataStream() GetDataStream() GetDataStream()

Gets an IInputStream object (a message represented as a sequential stream of bytes) from the remote network destination on a MessageWebSocket object.

See Also