DataGridDesigner.Dispose(Boolean) 方法

定义

释放由 DataGridDesigner 对象占用的非托管资源并(可选)释放托管资源。Releases the unmanaged resources used by the DataGridDesigner object and optionally releases the managed resources.

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

参数

disposing
Boolean

true 则既释放托管资源又释放非托管资源;为 false 则仅释放非托管资源。true to release both the managed and unmanaged resources; false to release only the unmanaged resources.

注解

disposing 参数为时 true ,此 Dispose 方法将释放由该对象引用的托管对象所持有的所有资源 DataGridDesignerWhen the disposing parameter is true, the Dispose method releases all the resources held by the managed objects that this DataGridDesigner object references.

继承者说明

Dispose(Boolean) 方法可由其他对象多次调用。The Dispose(Boolean) method can be called multiple times by other objects. 重写时,请确保不引用已在先前对的调用中释放的对象 Dispose(Boolean)When overriding it, be sure that you do not reference objects that have been disposed in an earlier call to Dispose(Boolean). 有关如何实现此方法的详细信息,请参阅 实现 Dispose 方法For more information about how to implement this method, see Implementing a Dispose Method.

有关和方法的详细 Dispose() 信息 Finalize() ,请参阅 清理非托管资源重写 Finalize 方法For more information about the Dispose() and Finalize() methods, see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.

适用于

另请参阅