VistaDB 5

StateChange Event
<ResDescriptionAttribute("Event triggered when the connection changes state.")>
Public Event StateChange As System.Data.StateChangeEventHandler
Dim instance As VistaDBConnection
Dim handler As System.Data.StateChangeEventHandler
AddHandler instance.StateChange, handler
[ResDescription("Event triggered when the connection changes state.")]
public event System.Data.StateChangeEventHandler StateChange
public event StateChange: System.Data.StateChangeEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
[ResDescription("Event triggered when the connection changes state.")]
public: __event System.Data.StateChangeEventHandler* StateChange
[ResDescription("Event triggered when the connection changes state.")]
event System.Data.StateChangeEventHandler^ StateChange
Event Data

The event handler receives an argument of type System.Data.StateChangeEventArgs containing data related to this event. The following StateChangeEventArgs properties provide information specific to this event.

Gets the new state of the connection. The connection object will be in the new state already when the event is fired.  
Gets the original state of the connection.  

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also