DocumentPageView.Dispose 方法

定义

释放该 DocumentPageView命令使用的所有资源。

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

注解

使用完每个Dispose实例后调用DocumentPageView。 调用后 DisposeDocumentPageView 将释放垃圾回收,应用程序不应再引用它。 调用 Dispose 并释放后,垃圾回收器可以回收 DocumentPageView 内存和资源。 有关详细信息,请参阅 清理非托管资源实现 Dispose 方法

注释

始终调用 Dispose 作为释放每个 DocumentPageView 实例的最终调用。 如果未Dispose调用,则在垃圾回收器稍后调用页面查看器DocumentPageView的方法之前,不会释放正在使用的资源Finalize

适用于

另请参阅