語言

DocumentPageView.Dispose 方法

定義

釋放 DocumentPageView所使用的所有資源。

protected:
 void Dispose();
protected void Dispose();
member this.Dispose : unit -> unit
Protected Sub Dispose ()

備註

使用完每個Dispose實例後再打電話DocumentPageView。 在 被呼叫後 Dispose ,該 DocumentPageView 會被釋放給垃圾回收,應用程式不應再引用。 呼叫並釋放後 Dispose ,垃圾回收器可以回收 DocumentPageView 記憶體和資源。 欲了解更多資訊,請參閱《 清理未管理資源 及 實施處置方法》。

Note

每次釋放實Dispose例時,都要用最後DocumentPageView通話來呼叫。 若 Dispose 未呼叫,所使用的資源 DocumentPageView 將不會被釋放,直到垃圾回收器稍後呼叫頁面檢視器的方法 Finalize 。

適用於

另請參閱