Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

MBinding.Dispose Method (Boolean)


Releases the unmanaged resources that are used by an MBinding and, optionally, releases the managed resources.

Namespace:   Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility.Data (in Microsoft.VisualBasic.Compatibility.Data.dll)

protected virtual void Dispose(
	bool disposing


Type: System.Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize invokes Dispose with the disposing parameter set to false.

When the disposing parameter is true, this method releases all resources held by any managed objects that this control references. This method invokes the Dispose() method of each referenced object.


Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft