MBindingCollection.Dispose MBindingCollection.Dispose MBindingCollection.Dispose MBindingCollection.Dispose Method

定义

释放由 MBindingCollection 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed resources.

重载

Dispose() Dispose() Dispose() Dispose()

释放由 MBindingCollection 占用的非托管资源。Releases the unmanaged resources that are used by a MBindingCollection.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 MBindingCollection 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed resources.

Dispose() Dispose() Dispose() Dispose()

释放由 MBindingCollection 占用的非托管资源。Releases the unmanaged resources that are used by a MBindingCollection.

public:
 virtual void Dispose() = IDisposable::Dispose;
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

实现

注解

此方法由公共Dispose()方法Finalize和方法调用。This method is called by the public Dispose() method and the Finalize method.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。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. 大多数情况下,这些函数和对象可再现 .NET Framework.NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有 Visual Basic 6.0 代码模型与 .NET Framework.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 MBindingCollection 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed resources.

protected:
 void Dispose(bool disposing);
protected void Dispose (bool disposing);
member this.Dispose : bool -> unit
Protected Sub Dispose (disposing As Boolean)

参数

disposing
Boolean Boolean Boolean Boolean

true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。true to release both managed and unmanaged resources; false to release only unmanaged resources.

注解

此方法由公共Dispose()方法Finalize和方法调用。This method is called by the public Dispose() method and the Finalize method. Dispose()调用受保护Dispose(Boolean)的方法, 释放参数设置为trueDispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. FinalizeDispose释放参数设置为false的情况调用。Finalize invokes Dispose with the disposing parameter set to false.

当释放参数为时true, 此方法将释放此控件引用的任何托管对象所持有的所有资源。When the disposing parameter is true, this method releases all resources held by any managed objects that this control references. 此方法调用每个引用对象的 Dispose() 方法。This method invokes the Dispose() method of each referenced object.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。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. 大多数情况下,这些函数和对象可再现 .NET Framework.NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有 Visual Basic 6.0 代码模型与 .NET Framework.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

适用于