WindowsFormsHost.Dispose(Boolean) WindowsFormsHost.Dispose(Boolean) WindowsFormsHost.Dispose(Boolean) WindowsFormsHost.Dispose(Boolean) Method

定義

釋放 WindowsFormsHost 所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。Releases the unmanaged resources used by the WindowsFormsHost, 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 表示會同時釋放 Managed 和 Unmanaged 資源,false 則表示只釋放 Unmanaged 資源。true to release both managed and unmanaged resources; false to release only unmanaged resources.

備註

呼叫Dispose方法會處置基底HwndHostChild控制項。Calling the Dispose method disposes the base HwndHost and the Child control.

適用於