StateChange event

Occurs when the state of the SAConnection object changes.

Syntax
Visual Basic

Public Overrides Event StateChange As StateChangeEventHandler
C#

public event override StateChangeEventHandler StateChange ;
Remarks

The event handler receives an argument of type StateChangeEventArgs with data related to this event. The following StateChangeEventArgs properties provide information specific to this event: CurrentState and OriginalState.

For more information, see the .NET Framework documentation for OleDbConnection.StateChange Event.

Event data
  • 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.

See also