Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAConnection class

 

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