IVsUIHierarchyWindow2.RemoveUIHierarchy(IVsUIHierarchy) 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.
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.
Implements
Remarks
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.