IVsUIHierarchyWindow2::RemoveUIHierarchy Method (IVsUIHierarchy^)

 

Removes a root UI hierarchy node from the UI hierarchy window.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int RemoveUIHierarchy(
	IVsUIHierarchy^ pUIH
)

Parameters

pUIH
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIHierarchy^

[in] IVsUIHierarchy interface representing the UI hierarchy node to remove.

Return Value

Type: System::Int32

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

Use this method to remove a hierarchy from the hierarchy window when, for example, a project is deleted from a Solution. To add a UI hierarchy to the hierarchy window, use the AddUIHierarchy method.

Return to top
Show: