Partager via


FlavoredProject.IVsHierarchy.GetNestedHierarchy Method

Definition

Determines whether or not a node is a nested hierarchy.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetNestedHierarchy(System::UInt32 itemId, Guid % guidHierarchyNested, [Runtime::InteropServices::Out] IntPtr % hierarchyNested, [Runtime::InteropServices::Out] System::UInt32 % itemIdNested) = Microsoft::VisualStudio::Shell::Interop::IVsHierarchy::GetNestedHierarchy;
int IVsHierarchy.GetNestedHierarchy (uint itemId, ref Guid guidHierarchyNested, out IntPtr hierarchyNested, out uint itemIdNested);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetNestedHierarchy : uint32 * Guid * nativeint * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetNestedHierarchy : uint32 * Guid * nativeint * uint32 -> int
Function GetNestedHierarchy (itemId As UInteger, ByRef guidHierarchyNested As Guid, ByRef hierarchyNested As IntPtr, ByRef itemIdNested As UInteger) As Integer Implements IVsHierarchy.GetNestedHierarchy

Parameters

itemId
UInt32

The item ID of the node.

guidHierarchyNested
Guid

The interface ID of the node.

hierarchyNested
IntPtr

nativeint

[out] Returns a pointer to the node, if it is a nested hierarchy node.

itemIdNested
UInt32

[out] Returns the item ID of the nested hierarchy node; this will always be VSITEMID_ROOT.

Returns

If itemid is not a nested hierarchy node, this method returns Microsoft.VisualStudio.VSConstants.E_FAIL. If the requested interface is not supported on the hierarchy object, Microsoft.VisualStudio.VSConstants.E_NOINTERFACE is returned. The caller would then treat this node as if it had no children.

Implements

Remarks

This method calls the GetNestedHierarchy method, which calls the GetNestedHierarchy method on the inner project.

Applies to