WebSocketClosedEventArgs WebSocketClosedEventArgs WebSocketClosedEventArgs WebSocketClosedEventArgs WebSocketClosedEventArgs Class

Definition

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

public : sealed class WebSocketClosedEventArgs
struct winrt::Windows::Networking::Sockets::WebSocketClosedEventArgs
public sealed class WebSocketClosedEventArgs
Public NotInheritable Class WebSocketClosedEventArgs
// 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

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

Properties

Code Code Code Code Code

Gets information about the reason that a WebSocket object was closed.

Reason Reason Reason Reason Reason

Gets additional details about the reason that a WebSocket object was closed.

See also