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
'Déclaration
Function RemoveUIHierarchy ( _
pUIH As IVsUIHierarchy _
) As Integer
'Utilisation
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
)
abstract RemoveUIHierarchy :
pUIH:IVsUIHierarchy -> int
function RemoveUIHierarchy(
pUIH : IVsUIHierarchy
) : int
Parameters
- pUIH
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy
[in] IVsUIHierarchy interface representing the UI hierarchy node to remove.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.