dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / OnCheckEventArgs Class / Connection Property

In This Topic
Connection Property (OnCheckEventArgs)
In This Topic
Gets the MySqlConnection used by MySqlDependency object.
Syntax
'Declaration
 
Public ReadOnly Property Connection As MySqlConnection
 

Property Value

A MySqlConnection object.
Remarks
Custom code that checks for changes in the table often needs to execute some commands on the server. This requires a MySqlConnection and a MySqlCommand objects. The OnCheckEventArgs class exposes internal connection the MySqlDependency uses in the Connection property. To avoid creating the MySqlCommand object every time, assign it to the CheckCommand property.
See Also