Share via


IVsUIHierarchyWindow.AddUIHierarchy(IVsUIHierarchy, UInt32) Method

Definition

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

public:
 int AddUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, System::UInt32 grfAddOptions);
public:
 int AddUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy ^ pUIH, unsigned int grfAddOptions);
int AddUIHierarchy(Microsoft::VisualStudio::Shell::Interop::IVsUIHierarchy const & pUIH, unsigned int grfAddOptions);
public int AddUIHierarchy (Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy pUIH, uint grfAddOptions);
abstract member AddUIHierarchy : Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy * uint32 -> int
Public Function AddUIHierarchy (pUIH As IVsUIHierarchy, grfAddOptions As UInteger) As Integer

Parameters

pUIH
IVsUIHierarchy

[in] IVsUIHierarchy to add.

grfAddOptions
UInt32

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

Returns

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.

Applies to