dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / SQLiteConnection Class / ClearAllPools Method / ClearAllPools(Boolean) Method
Determines whether to start the operation immediately, or after the timeout.

In This Topic
    ClearAllPools(Boolean) Method
    In This Topic
    Clears all pools associated with the connection.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ClearAllPools( _
       ByVal forced As Boolean _
    ) 
    public static void ClearAllPools( 
       bool forced
    )

    Parameters

    forced
    Determines whether to start the operation immediately, or after the timeout.
    Remarks

    Pools are automatically cleared if a connection is idle for some time or closed by the server. Call the ClearAllPools method to force explicit pools clearance.

    Note: if forced=false, this function is equivalent to ClearAllPools.

    If there are many opened connections, immediate pool clearing can cause high server load, so it is recommended to use forced = false.

    See Also