Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MessageWebSocketMessageReceivedEventArgs Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides data for a message received event on a MessageWebSocket.

public ref class MessageWebSocketMessageReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MessageWebSocketMessageReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MessageWebSocketMessageReceivedEventArgs
Public NotInheritable Class MessageWebSocketMessageReceivedEventArgs
Inheritance
Object Platform::Object IInspectable MessageWebSocketMessageReceivedEventArgs
Attributes

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Version history

Windows version SDK version Value added
1709 16299 IsMessageComplete

Properties

Name Description
IsMessageComplete

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

MessageType

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

Methods

Name Description
GetDataReader()

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

GetDataStream()

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

Applies to

See also


Feedback

Was this page helpful?