Visual Basic (Declaration) | |
---|---|
Public Sub Dispose() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As MultiStreamTarget instance.Dispose() |
C# | |
---|---|
public void Dispose() |
C++/CLI | |
---|---|
public: void Dispose(); |
Use this method to close or release unmanaged resources such as files, streams, and handles held by an instance of the class that implements this interface. By convention, this method is used for all tasks associated with freeing resources held by an object, or preparing an object for reuse.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7