Export (0) Print
Expand All

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)

int AddUIHierarchy(
	IVsUIHierarchy pUIH,
	uint grfAddOptions
)

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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Show:
© 2014 Microsoft