dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteConnection Class / RegisterProgressHandler Method / RegisterProgressHandler(SQLiteProgressCallback,Int32) Method
A handler to register.
The number of SQLite virtual machine instructions between the progress handler calls.

In This Topic
    RegisterProgressHandler(SQLiteProgressCallback,Int32) Method
    In This Topic
    Registers a handler to be invoked each SQLite virtual machine instruction during long running calls to a database.
    Syntax
    'Declaration
     
    Public Overloads Sub RegisterProgressHandler( _
       ByVal handler As SQLiteProgressCallback, _
       ByVal vmInstructions As Integer _
    ) 
    public void RegisterProgressHandler( 
       SQLiteProgressCallback handler,
       int vmInstructions
    )

    Parameters

    handler
    A handler to register.
    vmInstructions
    The number of SQLite virtual machine instructions between the progress handler calls.
    Remarks

    If the registered progress handler returns non-zero, the operation is interrupted.

    You cannot register more then one progress handler. When you register a new one, a previous one is unregitered.

    The handler must not do anything that will modify the connection it is registered in. This includes SQL statement preparation and execution, retrieving data, etc.

    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