ProjectContainerNode.GetNestedHierarchy Method

Gets the nested hierarchy node with the supplied item ID and the supplied interface ID of the nested hierarchy node.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
<CLSCompliantAttribute(False)> _
Public Overrides Function GetNestedHierarchy ( _
    itemId As UInteger, _
    ByRef iidHierarchyNested As Guid, _
    <OutAttribute> ByRef ppHierarchyNested As IntPtr, _
    <OutAttribute> ByRef pItemId As UInteger _
) As Integer
'使用
Dim instance As ProjectContainerNode
Dim itemId As UInteger
Dim iidHierarchyNested As Guid
Dim ppHierarchyNested As IntPtr
Dim pItemId As UInteger
Dim returnValue As Integer

returnValue = instance.GetNestedHierarchy(itemId, _
    iidHierarchyNested, ppHierarchyNested, _
    pItemId)
[CLSCompliantAttribute(false)]
public override int GetNestedHierarchy(
    uint itemId,
    ref Guid iidHierarchyNested,
    out IntPtr ppHierarchyNested,
    out uint pItemId
)
[CLSCompliantAttribute(false)]
public:
virtual int GetNestedHierarchy(
    unsigned int itemId, 
    Guid% iidHierarchyNested, 
    [OutAttribute] IntPtr% ppHierarchyNested, 
    [OutAttribute] unsigned int% pItemId
) override
public override function GetNestedHierarchy(
    itemId : uint, 
    iidHierarchyNested : Guid, 
    ppHierarchyNested : IntPtr, 
    pItemId : uint
) : int

Parameters

  • itemId
    Type: System.UInt32

     The item ID of the hierarchy node.

  • iidHierarchyNested
    Type: System.Guid%

    The interface ID of the hierarchy node.

  • ppHierarchyNested
    Type: System.IntPtr%

    [out] Pointer to the interface corresponding to iidHierarchyNested.

  • pItemId
    Type: System.UInt32%

     [out] Pointer to the item ID of the nested hierarchy node.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code. If the returned item ID is not a nested hierarchy node, this method returns E_FAIL.

Implements

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

Permissions

See Also

Reference

ProjectContainerNode Class

ProjectContainerNode Members

Microsoft.VisualStudio.Package Namespace