Export (0) Print
Expand All

Component.Dispose Method

Releases the resources used by the Component.

Overload List

Releases all resources used by the Component.

[Visual Basic] Overloads Public Overridable Sub Dispose() Implements IDisposable.Dispose
[C#] public virtual void Dispose();
[C++] public: virtual void Dispose();
[JScript] public function Dispose();

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Protected Overridable Sub Dispose(Boolean)
[C#] protected virtual void Dispose(bool);
[C++] protected: virtual void Dispose(bool);
[JScript] protected function Dispose(Boolean);

See Also

Component Class | Component Members | System.ComponentModel Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft