MessageWebSocketMessageReceivedEventArgs Class
Definition
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.DualApiPartition(version=100794368)]
/// [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.DualApiPartition(version=100794368)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MessageWebSocketMessageReceivedEventArgs
Public NotInheritable Class MessageWebSocketMessageReceivedEventArgs
- Inheritance
-
MessageWebSocketMessageReceivedEventArgs
- Attributes
Windows 10 requirements
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
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
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. |