Indicates that the ODBC Driver Manager environment handle can be released when the last underlying connection is released.
Assembly: System.Data (in System.Data.dll)
ReleaseObjectPool can be called to release the ODBC environment handle. You might want to call this method if, for example, the connection object will not be used again. When all connections in the environment are closed, the environment can be disposed. Note that calling the method alone does not actually release the active connections that exist in the environment.
The following must occur before the environment is finally disposed:
Allow each connection object to time out.
Invoke garbage collection.
Conversely, if you call Close on all active connections, and invoke garbage collection, but do not call , the resources reserved for the environment remain available.
After an environment handle is released, a request for a new OdbcConnection creates a new environment.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.