ClientWebSocket.CloseStatus Property

.NET Framework 4.6 and 4.5

Gets the reason why the close handshake was initiated on ClientWebSocket instance.

Namespace:  System.Net.WebSockets
Assembly:  System (in System.dll)

public override Nullable<WebSocketCloseStatus> CloseStatus { get; }

Property Value

Type: System.Nullable<WebSocketCloseStatus>
Returns WebSocketCloseStatus.
The reason why the close handshake was initiated.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft