This documentation is archived and is not being maintained.

SqlCeConnection.Dispose Method

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Releases all the unmanaged resources used by the SqlCeConnection and optionally releases the managed resources.

[Visual Basic]
Public Overridable Sub Dispose() Implements IDisposable.Dispose
public virtual void Dispose();
public: virtual void Dispose();
public function Dispose();




This method is called by the public method and the Finalize() method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize() invokes Dispose with disposing set to false.

When the disposing parameter is true, this method releases all resources held by any managed objects that this SqlCeConnection references. This method involkes the Dispose() method of each referenced object.

For more information about Dispose and Finalize, see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.

The Dispose method calls Close.


Platforms: .NET Compact Framework

.NET Framework Security: 

See Also

SqlCeConnection Class | SqlCeConnection Members | System.Data.SqlServerCe Namespace