次の方法で共有


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

'宣言
Function RemoveUIHierarchy ( _
    pUIH As IVsUIHierarchy _
) As Integer
'使用
Dim instance As IVsUIHierarchyWindow
Dim pUIH As IVsUIHierarchy
Dim returnValue As Integer

returnValue = instance.RemoveUIHierarchy(pUIH)
int RemoveUIHierarchy(
    IVsUIHierarchy pUIH
)
int RemoveUIHierarchy(
    [InAttribute] IVsUIHierarchy^ pUIH
)
function RemoveUIHierarchy(
    pUIH : IVsUIHierarchy
) : int

Parameters

Return Value

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

Permissions

See Also

Reference

IVsUIHierarchyWindow Interface

IVsUIHierarchyWindow Members

Microsoft.VisualStudio.Shell.Interop Namespace