dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteConnection Class / RegisterProgressHandler Method / RegisterProgressHandler(SQLiteProgressCallback) Method
A handler to register.

In This Topic
    RegisterProgressHandler(SQLiteProgressCallback) 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 _
    ) 
    public void RegisterProgressHandler( 
       SQLiteProgressCallback handler
    )

    Parameters

    handler
    A handler to register.
    Remarks

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

    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.

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

    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