OracleConnection.ClearPool(OracleConnection) 方法

定义

清空与指定连接关联的连接池。Empties the connection pool associated with the specified connection.

public:
 static void ClearPool(System::Data::OracleClient::OracleConnection ^ connection);
public static void ClearPool (System.Data.OracleClient.OracleConnection connection);
static member ClearPool : System.Data.OracleClient.OracleConnection -> unit
Public Shared Sub ClearPool (connection As OracleConnection)

参数

connection
OracleConnection

要从池中清除的 OracleConnectionThe OracleConnection to be cleared from the pool.

注解

ClearPool 方法清除与 connection关联的连接池。ClearPool method clears the connection pool that is associated with connection. 如果在调用时使用与 connection 关联的其他连接,则这些连接将被适当标记,当对其调用 Close 时,它们将被丢弃。If additional connections associated with connection are in use at the time of the call, they are marked appropriately and are discarded when Close is called on them.

适用于