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:
The DesignSurface must offer a service of type DocDataServiceContainer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Shell.Design Namespace
DocDataServiceContainer