IVsHierarchy.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes and cleans up a hierarchy once the environment determines that it is no longer used.
public:
int Close();
public:
int Close();
int Close();
public int Close ();
abstract member Close : unit -> int
Public Function Close () As Integer
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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).