'Declaration
<ResCategoryAttribute("DataCategory_StateChange")> <ResDescriptionAttribute("DbConnection_StateChange")> Public Event StateChange As System.Data.StateChangeEventHandler
'Usage
Dim instance As VistaDBConnection Dim handler As System.Data.StateChangeEventHandler AddHandler instance.StateChange, handler
[ResCategory("DataCategory_StateChange")] [ResDescription("DbConnection_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.
Property | Description |
---|---|
CurrentState | Gets the new state of the connection. The connection object will be in the new state already when the event is fired. |
OriginalState | 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