Delen via


IVsUIHierarchyWindow.RemoveUIHierarchy Method

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

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

Syntax

'Declaration
Function RemoveUIHierarchy ( _
    pUIH As IVsUIHierarchy _
) As Integer
int RemoveUIHierarchy(
    IVsUIHierarchy pUIH
)
int RemoveUIHierarchy(
    [InAttribute] IVsUIHierarchy^ pUIH
)
abstract RemoveUIHierarchy : 
        pUIH:IVsUIHierarchy -> int
function RemoveUIHierarchy(
    pUIH : IVsUIHierarchy
) : int

Parameters

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsUIHierarchyWindow Interface

Microsoft.VisualStudio.Shell.Interop Namespace