WebSocket.IsStateTerminal Method (WebSocketState)

.NET Framework (current version)
 

Returns a value that indicates if the state of the WebSocket instance is closed or aborted.

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

protected static bool IsStateTerminal(
	WebSocketState state
)

Parameters

state
Type: System.Net.WebSockets.WebSocketState

The current state of the WebSocket.

Return Value

Type: System.Boolean

Returns Boolean.

true if the WebSocket is closed or aborted; otherwise false.

.NET Framework
Available since 4.5
Return to top
Show: