HierarchyNode.CloseDocumentWindow Method
Closes an open document window for a specific node.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Sub CloseDocumentWindow ( _
node As HierarchyNode _
)
'使用
Dim node As HierarchyNode
Me.CloseDocumentWindow(node)
protected void CloseDocumentWindow(
HierarchyNode node
)
protected:
void CloseDocumentWindow(
HierarchyNode^ node
)
protected function CloseDocumentWindow(
node : HierarchyNode
)
Parameters
node
Type: Microsoft.VisualStudio.Package.HierarchyNodeThe node for which the document window should be closed.
Remarks
This method gets the documents from the running document table, iterates through them to find the specified document, and calls [M:Microsoft.VisualStudio.Shell.Interop.IVsSolution.CloseSolutionElement(uint grfCloseOpts, IVsHierarchy pHier, uint docCookie)] on that document.
Permissions
- 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.