dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDependency Class / Start Method / Start(String) Method
The connection string to use when checking for changes on the server.

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

    Parameters

    connectionString
    The connection string to use when checking for changes on the server.
    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(String) method iterates through all attached MySqlCommand objects and checks the connections string of MySqlConnection objects referenced by the command. If the ConnectionString property is same as the connectionString parameter, this command is used in server polling. In other words, if you have several different connection strings, you might have to invoke the Start(String) method several times.

    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