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. |
Use this event to determine whether the table being watched has changes.
The event invokes a OnCheckEventHandler with an argument of type OnCheckEventArgs.