WebSocket.ThrowOnInvalidState(WebSocketState, WebSocketState[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies that the connection is in an expected state.
protected:
static void ThrowOnInvalidState(System::Net::WebSockets::WebSocketState state, ... cli::array <System::Net::WebSockets::WebSocketState> ^ validStates);
protected static void ThrowOnInvalidState (System.Net.WebSockets.WebSocketState state, params System.Net.WebSockets.WebSocketState[] validStates);
static member ThrowOnInvalidState : System.Net.WebSockets.WebSocketState * System.Net.WebSockets.WebSocketState[] -> unit
Protected Shared Sub ThrowOnInvalidState (state As WebSocketState, ParamArray validStates As WebSocketState())
Parameters
- state
- WebSocketState
The current state of the WebSocket to be tested against the list of valid states.
- validStates
- WebSocketState[]
List of valid connection states.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.