DesignerWindowPane.OnClose 方法

调用以响应 ClosePaneIVsWindowPane 接口的方法。

命名空间:  Microsoft.VisualStudio.Shell.Design
程序集:  Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)

语法

声明
Protected Overrides Sub OnClose
protected override void OnClose()

备注

此方法调用以响应 ClosePane 方法。默认实现调用 Dispose; DesignerWindowPane 重写此方法支持窗格缓存。窗口窗格缓存可提供性能提升和启用共享功能,如多个子设计器之间共享的一个全局设计器。若要启用窗口窗格缓存,必须将以下方案:

  1. DesignSurface 必须提供类型 DocDataServiceContainer服务。

  2. DocDataServiceContainer 必须包含 DesignSurface 用作服务。

这两个标准的组合指示 DesignSurface 支持在 DocData上的缓存。

.NET Framework 安全性

请参见

参考

DesignerWindowPane 类

Microsoft.VisualStudio.Shell.Design 命名空间

Dispose

DesignSurface

DocDataServiceContainer

DocData