FlavoredProject.IVsHierarchy.Close Method

Definition

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

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close() = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::Close;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close() = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::Close;
int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close();
int IVsHierarchy.Close ();
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close : unit -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close : unit -> int
Function Close () As Integer Implements IVsHierarchy.Close

Returns

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

Implements

Remarks

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.

Applies to