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