Windows Dev Center

WebSocketClosedEventArgs class

Provides data for a closed event on a MessageWebSocket, StreamWebSocket, or IWebSocket object.

Syntax


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

Members

The WebSocketClosedEventArgs class has these types of members:

Properties

The WebSocketClosedEventArgs class has these properties.

PropertyAccess typeDescription

Code

Read-onlyGets information about the reason that a WebSocket object was closed.

Reason

Read-onlyGets additional details about the reason that a WebSocket object was closed.

 

Remarks

A WebSocketClosedEventArgs instance is created when the MessageWebSocket.Closed, StreamWebSocket.Closed, or IWebSocket.Closed event occurs.

Requirements (Windows 10 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 (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
MessageWebSocket.Closed
StreamWebSocket.Closed
IWebSocket.Closed

 

 

Show:
© 2015 Microsoft