WebSocket.IsStateTerminal(WebSocketState) 方法

定義

傳回值,指出 WebSocket 執行個體的狀態是關閉或中止。Returns a value that indicates if the state of the WebSocket instance is closed or aborted.

protected:
 static bool IsStateTerminal(System::Net::WebSockets::WebSocketState state);
protected static bool IsStateTerminal (System.Net.WebSockets.WebSocketState state);
static member IsStateTerminal : System.Net.WebSockets.WebSocketState -> bool
Protected Shared Function IsStateTerminal (state As WebSocketState) As Boolean

參數

state
WebSocketState

WebSocket 的目前狀態。The current state of the WebSocket.

傳回

WebSocket 已關閉或中止,則為 true;否則為 falsetrue if the WebSocket is closed or aborted; otherwise, false.

適用於