'Declaration Public Event OnCheck As OnCheckEventHandler
public event OnCheckEventHandler OnCheck
Event Data
The event handler receives an argument of type OnCheckEventArgs containing data related to this event. The following OnCheckEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CheckCommand | Gets or sets MySqlCommand object you can use in the handler. |
CheckType | Gets the check method, specified in MySqlDependency for the command. |
Command | Gets MySqlCommand object associated with the table that was modified on the server. |
Connection | Gets the MySqlConnection used by MySqlDependency object. |
Hash | Gets or sets a string value that can be used to identify state of a table. |
Reason | Gets or sets a string description that is passed to OnChange handler. |
Schema | Gets a DataTable object that describes structure of the table. |
TableName | Gets name of the table being watched. |
Remarks
Use this event to determine whether the table being watched has changes.
The event invokes a OnCheckEventHandler with an argument of type OnCheckEventArgs.
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