Partager via


IVsUIHierarchyWindow.RemoveUIHierarchy(IVsUIHierarchy) Method

Definition

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

public:
 int RemoveUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH);
public:
 int RemoveUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH);
int RemoveUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy const & pUIH);
public int RemoveUIHierarchy (Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy pUIH);
abstract member RemoveUIHierarchy : Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy -> int
Public Function RemoveUIHierarchy (pUIH As IVsUIHierarchy) As Integer

Parameters

pUIH
IVsUIHierarchy

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchyWindow::RemoveUIHierarchy(  
   [in] IVsUIHierarchy* pUIH  
);  

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.

Applies to