VistaDB 5






StateChange Event
Syntax
'Declaration
 
<ResDescriptionAttribute("Event triggered when the connection changes state.")>
<ResCategoryAttribute("StateChange")>
Public Event StateChange As System.Data.StateChangeEventHandler
'Usage
 
Dim instance As VistaDBConnection
Dim handler As System.Data.StateChangeEventHandler
 
AddHandler instance.StateChange, handler
[ResDescription("Event triggered when the connection changes state.")]
[ResCategory("StateChange")]
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.")]
[ResCategory("StateChange")]
public: __event System.Data.StateChangeEventHandler* StateChange
[ResDescription("Event triggered when the connection changes state.")]
[ResCategory("StateChange")]
public:
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.

PropertyDescription
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.  
Requirements

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