Connection.State Property

.NET Framework 4.5

Gets the current ConnectionState of the connection.

Namespace:  Microsoft.AspNet.SignalR.Client
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Public Property State As ConnectionState 
    Get 
    Private Set
'Usage
Dim instance As Connection 
Dim value As ConnectionState 

value = instance.State
public ConnectionState State { get; private set; }
public:
virtual property ConnectionState State {
    ConnectionState get () sealed;
    private: void set (ConnectionState value) sealed;
}
abstract State : ConnectionState with get, private set 
override State : ConnectionState with get, private set
final function get State () : ConnectionState 
private final function set State (value : ConnectionState)

Property Value

Type: Microsoft.AspNet.SignalR.Client.ConnectionState
Returns ConnectionState.

Implements

IConnection.State

See Also

Reference

Connection Class

Microsoft.AspNet.SignalR.Client Namespace