Closes and cleans up a hierarchy once the environment determines that it is no longer used.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
The IVsHierarchy.Close method is only called automatically on hierarchies that are part of a solution. For hierarchies outside of solutions, have your package call this method on exit for any hierarchies that the package implements.
This method can only be called by the code owning this instance of the hierarchy (the Site).
- 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.