Partager via


IVsHierarchyItemManager.GetHierarchyItem Method

Gets or creates an IVsHierarchyItem corresponding to the specified hierarchy and item identifier.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'Declaration
Function GetHierarchyItem ( _
    hierarchy As IVsHierarchy, _
    itemid As UInteger _
) As IVsHierarchyItem
IVsHierarchyItem GetHierarchyItem(
    IVsHierarchy hierarchy,
    uint itemid
)
IVsHierarchyItem^ GetHierarchyItem(
    IVsHierarchy^ hierarchy, 
    unsigned int itemid
)
abstract GetHierarchyItem : 
        hierarchy:IVsHierarchy * 
        itemid:uint32 -> IVsHierarchyItem
function GetHierarchyItem(
    hierarchy : IVsHierarchy, 
    itemid : uint
) : IVsHierarchyItem

Parameters

  • itemid
    Type: UInt32

    The item identifier.

Return Value

Type: Microsoft.VisualStudio.Shell.IVsHierarchyItem
The hierarchy item.

Remarks

If the item has already been requested, the same instance is returned, otherwise a new IVsHierarchyItem instance is created.

.NET Framework Security

See Also

Reference

IVsHierarchyItemManager Interface

Microsoft.VisualStudio.Shell Namespace