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
pUIH
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy[in] IVsUIHierarchy to add.
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
Root nodes added using this method are removed by calling RemoveUIHierarchy.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.