ClientWebSocket::CloseStatus Property

.NET Framework (current version)
 

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

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

public:
property Nullable<WebSocketCloseStatus> CloseStatus {
	virtual Nullable<WebSocketCloseStatus> get() override;
}

Property Value

Type: System::Nullable<WebSocketCloseStatus>

Returns WebSocketCloseStatus.

The reason why the close handshake was initiated.

.NET Framework
Available since 4.5
Return to top
Show: