Releases all the unmanaged resources used by the SqlCeConnection and optionally releases the managed resources.
[Visual Basic] Public Overridable Sub Dispose() Implements IDisposable.Dispose [C#] public virtual void Dispose(); [C++] public: virtual void Dispose(); [JScript] 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.
The Dispose method calls Close.
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code