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

'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: 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: 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

Microsoft.VisualStudio.Shell.Interop Namespace