AspNetWebSocket.State Property

.NET Framework (current version)

Gets a value that indicates the open or closed state of an AspNetWebSocket object.

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

public override WebSocketState State { get; }

Property Value

Type: System.Net.WebSockets.WebSocketState

The current state.

Exception Condition

The object was previously disposed.

.NET Framework
Available since 4.5
Return to top