dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDependency Class / OnChange Event

OnChange Event
Occurs when MySqlDependency detects that there is a change in any of the commands associated with this MySqlDependency object.
Syntax
'Declaration
 
Public Event OnChange As OnChangeEventHandler
 
Event Data

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

PropertyDescription
Gets MySqlCommand object associated with the table that was modified on the server.  
Gets the string that identifies why the table is considered to have changes.  
Gets name of the table that was modified on the server.  
Remarks

Keep in mind that this event is fired not when the tables are actually modified, but when MySqlDependency checks for modifications.

The event invokes a OnChangeEventHandler with an argument of type MySqlTableChangeEventArgs.

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