dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDependency Class / Start Method / Start(MySqlConnection) Method

In This Topic
    Start(MySqlConnection) Method
    In This Topic
    Starts tracking changes using the specified connection.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Start( _
       ByVal connection As MySqlConnection _
    ) 
    public static void Start( 
       MySqlConnection connection
    )

    Parameters

    connection
    Remarks

    This method initiates the tracking mechanism. The MySqlDependency analyzes the CommandText properties of all added MySqlCommand objects. After this method is invoked, changes in commands are not accounted.

    The Start(MySqlConnection) method iterates through all attached MySqlCommand objects and checks the MySqlConnection objects referenced by the command. If the command uses the specified connection, this command is used in server polling. In other words, if you use different connection, you might have to invoke the Start(MySqlConnection) method several times.

    See Also