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
    public MySqlConnection Connection {get;}

    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.
    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