次の方法で共有


DesignerWindowPane.OnClose Method

Called in response to the ClosePane method on the IVsWindowPane interface.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Protected Overrides Sub OnClose
protected override void OnClose()

Remarks

This method is called in response to the ClosePane method. The default implementation calls Dispose; DesignerWindowPane overrides this method to support window pane caching. Window pane caching can provide a performance boost and enable shared features, like a global designer that is shared among multiple child designers. To enable window pane caching, the following scenarios must hold true:

  1. The DesignSurface must offer a service of type DocDataServiceContainer.

  2. The DocDataServiceContainer must contain the DesignSurface as a service.

The combination of these two criteria indicates that the DesignSurface supports caching itself onto the DocData.

.NET Framework Security

See Also

Reference

DesignerWindowPane Class

Microsoft.VisualStudio.Shell.Design Namespace

Dispose

DesignSurface

DocDataServiceContainer

DocData