- disposing
- True to release both managed and unmanaged resources; False to release only unmanaged resources.
Visual Basic (Declaration) | |
---|---|
Overloads Protected Overridable Sub Dispose( _ ByVal disposing As Boolean _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Printer Dim disposing As Boolean instance.Dispose(disposing) |
Parameters
- disposing
- True to release both managed and unmanaged resources; False to release only unmanaged resources.
For an example, refer to Printer.
The Printer class implements the System.IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the Printer class. For more information, refer to the System.IDisposable interface documentation in MSDN.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7