dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Connection Class / ClearPool Method
A connection that holds ConnectionString that identifies pool to clear.

In This Topic
    ClearPool Method
    In This Topic
    Clears the pool matching ConnectionString of provided DB2Connection object.
    Syntax
    'Declaration
     
    Public Shared Sub ClearPool( _
       ByVal connection As DB2Connection _
    ) 
    public static void ClearPool( 
       DB2Connection connection
    )

    Parameters

    connection
    A connection that holds ConnectionString that identifies pool to clear.
    Remarks

    Pool is automatically cleared if a connection is idle for some time or closed by the server. Call ClearPool to force explicit pool clearance.

    ClearPool does not immediately clear the pool. The operation is started in approximately 30 seconds. The main thread of the application is not blocked.

    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