Share via


IVsUIHierarchyWindow2.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.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function AddUIHierarchy ( _
    pUIH As IVsUIHierarchy, _
    grfAddOptions As UInteger _
) As Integer
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.

Implements

IVsUIHierarchyWindow.AddUIHierarchy(IVsUIHierarchy, UInt32)

Remarks

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

.NET Framework Security

See Also

Reference

IVsUIHierarchyWindow2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace