System.Net.WebSockets.WebSocket.ThrowOnInvalidState Method

Verifies that the connection is in an expected state.

Syntax

[System.MonoTODO]
protected static void ThrowOnInvalidState (WebSocketState state, params WebSocketState[] validStates)

Parameters

state
The current state of the WebSocket to be tested against the list of valid states.
validStates
List of valid connection states.

Remarks

Documentation for this section has not yet been entered.

Requirements

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