Compartir a través de


IVsUIHierarchyWindow2.RemoveUIHierarchy Method

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)

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

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

IVsUIHierarchyWindow2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace