FlavoredProject::IVsHierarchy::Close Method ()

 

Closes and cleans up a hierarchy once the environment determines that it is no longer used.

Namespace:   Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

private:
virtual int Close() sealed = IVsHierarchy::Close

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

This method calls the Close method, which calls the Close method on the inner project.

It is called automatically only 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.

Return to top
Show: