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

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

See Also

Reference

HierarchyNode Class

HierarchyNode Members

Microsoft.VisualStudio.Package Namespace