Share via


FlavoredProject.IVsHierarchy.GetNestedHierarchy Method

Determines whether or not a node is a nested hierarchy.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Private Function GetNestedHierarchy ( _
    itemId As UInteger, _
    ByRef guidHierarchyNested As Guid, _
    <OutAttribute> ByRef hierarchyNested As IntPtr, _
    <OutAttribute> ByRef itemIdNested As UInteger _
) As Integer Implements IVsHierarchy.GetNestedHierarchy
int IVsHierarchy.GetNestedHierarchy(
    uint itemId,
    ref Guid guidHierarchyNested,
    out IntPtr hierarchyNested,
    out uint itemIdNested
)
private:
virtual int GetNestedHierarchy(
    unsigned int itemId, 
    Guid% guidHierarchyNested, 
    [OutAttribute] IntPtr% hierarchyNested, 
    [OutAttribute] unsigned int% itemIdNested
) sealed = IVsHierarchy::GetNestedHierarchy
private abstract GetNestedHierarchy : 
        itemId:uint32 * 
        guidHierarchyNested:Guid byref * 
        hierarchyNested:IntPtr byref * 
        itemIdNested:uint32 byref -> int  
private override GetNestedHierarchy : 
        itemId:uint32 * 
        guidHierarchyNested:Guid byref * 
        hierarchyNested:IntPtr byref * 
        itemIdNested:uint32 byref -> int
JScript does not support explicit interface implementations.

Parameters

  • itemId
    Type: UInt32

    The item ID of the node.

  • guidHierarchyNested
    Type: Guid%

    The interface ID of the node.

  • hierarchyNested
    Type: IntPtr%

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

  • itemIdNested
    Type: UInt32%

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

Return Value

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

Implements

IVsHierarchy.GetNestedHierarchy(UInt32, Guid%, IntPtr%, UInt32%)

Remarks

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

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace