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

In This Topic
    CheckCommand Property
    In This Topic
    Gets or sets MySqlCommand object you can use in the handler.
    Syntax
    'Declaration
     
    Public Property CheckCommand As MySqlCommand
    public MySqlCommand CheckCommand {get; set;}

    Property Value

    A MySqlCommand 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