MySqlConnection.ClearPool Method

MySQL Connector/Net

MySqlConnectionClearPool Method
Empties the connection pool associated with the specified connection.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public static void ClearPool(
	MySqlConnection connection
)
Public Shared Sub ClearPool ( 
	connection As MySqlConnection
)
public:
static void ClearPool(
	MySqlConnection^ connection
)
static member ClearPool : 
        connection : MySqlConnection -> unit 

Parameters

connection
Type: MySql.Data.MySqlClientMySqlConnection
The MySqlConnection associated with the pool to be cleared.
Remarks

ClearPool clears the connection pool that is associated with the connection. If additional connections associated with connection are in use at the time of the call, they are marked appropriately and are discarded (instead of being returned to the pool) when Close is called on them.

See Also