HierarchyNode.Close Method
Closes and cleans up a hierarchy after the environment determines that it is no longer used.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function Close As Integer
'使用
Dim instance As HierarchyNode
Dim returnValue As Integer
returnValue = instance.Close()
public virtual int Close()
public:
virtual int Close()
public function Close() : int
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsUIHierarchy.Close()
IVsHierarchy.Close()
Remarks
Closes all the documents that are a part of the hierarchy node that is closing.
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.