Share via


Connection.StateChanged Event

.NET Framework 4

Occurs when the Connection state changes.

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

Syntax

'Declaration
Public Event StateChanged As Action(Of StateChange)
'Usage
Dim instance As Connection 
Dim handler As Action(Of StateChange)

AddHandler instance.StateChanged, handler
public event Action<StateChange> StateChanged
public:
 event Action<StateChange^>^ StateChanged {
    void add (Action<StateChange^>^ value);
    void remove (Action<StateChange^>^ value);
}
member StateChanged : IEvent<Action<StateChange>,
    EventArgs>
JScript supports the use of events, but not the declaration of new ones.

See Also

Reference

Connection Class

Microsoft.AspNet.SignalR.Client Namespace