Empties the connection pool associated with the specified connection.
public:
static void ClearPool(System::Data::SqlClient::SqlConnection ^ connection);
public static void ClearPool(System.Data.SqlClient.SqlConnection connection);
static member ClearPool : System.Data.SqlClient.SqlConnection -> unit
Public Shared Sub ClearPool (connection As SqlConnection)
Parameters 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.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4