ContainerControl.Dispose(Boolean) ContainerControl.Dispose(Boolean) ContainerControl.Dispose(Boolean) ContainerControl.Dispose(Boolean) Method

定义

释放由 Control 和它的子控件占用的非托管资源,另外还可以释放托管资源。Releases the unmanaged resources used by the Control and its child controls 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 Boolean Boolean Boolean

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

适用于

另请参阅