IVsUIHierarchyWindow2::AddUIHierarchy Method (IVsUIHierarchy^, UInt32)
Visual Studio 2015
Adds an additional root UI hierarchy node to the list managed by the UI hierarchy window.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- pUIH
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUIHierarchy^
[in] IVsUIHierarchy to add.
- 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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Root nodes added using this method are removed by calling RemoveUIHierarchy.
Show: