Skip to main content

Windows Dev Center

MessageWebSocketMessageReceivedEventArgs class

Provides data for a message received event on a MessageWebSocket.

Syntax


/* For information about creating or accessing this object, see Remarks. */

public sealed class MessageWebSocketMessageReceivedEventArgs

Public NotInheritable Class MessageWebSocketMessageReceivedEventArgs

public ref class MessageWebSocketMessageReceivedEventArgs sealed 

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Version(0x06020000)]

Members

The MessageWebSocketMessageReceivedEventArgs class has these types of members:

Methods

The MessageWebSocketMessageReceivedEventArgs class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
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.

 

Properties

The MessageWebSocketMessageReceivedEventArgs class has these properties.

PropertyAccess typeDescription

MessageType

Read-onlyGets the type of the message received by a MessageWebSocket object.

 

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.

Requirements ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

See also

Object
MessageWebSocket