SqlConnection.ClearAllPools SqlConnection.ClearAllPools SqlConnection.ClearAllPools SqlConnection.ClearAllPools Method

定义

清空连接池。Empties the connection pool.

public:
 static void ClearAllPools();
public static void ClearAllPools ();
static member ClearAllPools : unit -> unit
Public Shared Sub ClearAllPools ()

注解

ClearAllPools 重置 (或清空) 连接池。ClearAllPools resets (or empties) the connection pool. 如果在调用时在使用中的连接,它们被适当标记并且将放弃 (而不是返回到池) 时Close对其调用。If there are connections in use at the time of the call, they are marked appropriately and will be discarded (instead of being returned to the pool) when Close is called on them.

适用于

另请参阅