Releases resources associated with this object. After this method has been called, an attempt to use this object will result in an ObjectDisposedException being thrown.
[Visual Basic] Public Overridable Sub Dispose() Implements IDisposable.Dispose [C#] public virtual void Dispose(); [C++] public: virtual void Dispose(); [JScript] public function Dispose();
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.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