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

ClearAllPools(Boolean) Method
Clears all pools associated with the connection.
Syntax
'Declaration
 
Public Overloads Shared Sub ClearAllPools( _
   ByVal forced As Boolean _
) 
 

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.

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