Partager via


IVsUIHierarchyWindow.AddUIHierarchy Method

Adds an additional root UI hierarchy node to the list managed by the UI hierarchy window.

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

Syntax

'Déclaration
Function AddUIHierarchy ( _
    pUIH As IVsUIHierarchy, _
    grfAddOptions As UInteger _
) As Integer
'Utilisation
Dim instance As IVsUIHierarchyWindow
Dim pUIH As IVsUIHierarchy
Dim grfAddOptions As UInteger
Dim returnValue As Integer

returnValue = instance.AddUIHierarchy(pUIH, _
    grfAddOptions)
int AddUIHierarchy(
    IVsUIHierarchy pUIH,
    uint grfAddOptions
)
int AddUIHierarchy(
    [InAttribute] IVsUIHierarchy^ pUIH, 
    [InAttribute] unsigned int grfAddOptions
)
abstract AddUIHierarchy : 
        pUIH:IVsUIHierarchy * 
        grfAddOptions:uint32 -> int 
function AddUIHierarchy(
    pUIH : IVsUIHierarchy, 
    grfAddOptions : uint
) : int

Parameters

  • grfAddOptions
    Type: System.UInt32
    [in] Sets selection behavior in the hierarchy window when a new hierarchy is added. For a list of grfAddOptions values, see __VSADDHIEROPTIONS.

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::AddUIHierarchy(
   [in] IVsUIHierarchy* pUIH,
   [in] VSADDHIEROPTIONS grfAddOptions
);

Root nodes added using this method are removed by calling RemoveUIHierarchy.

.NET Framework Security

See Also

Reference

IVsUIHierarchyWindow Interface

IVsUIHierarchyWindow Members

Microsoft.VisualStudio.Shell.Interop Namespace