Share via


IVsHierarchyItemManager.GetHierarchyItem(IVsHierarchy, UInt32) Method

Definition

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

public:
 Microsoft::VisualStudio::Shell::IVsHierarchyItem ^ GetHierarchyItem(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemid);
public Microsoft.VisualStudio.Shell.IVsHierarchyItem GetHierarchyItem (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemid);
abstract member GetHierarchyItem : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> Microsoft.VisualStudio.Shell.IVsHierarchyItem
Public Function GetHierarchyItem (hierarchy As IVsHierarchy, itemid As UInteger) As IVsHierarchyItem

Parameters

hierarchy
IVsHierarchy

The hierarchy for which to get or create the new hierarchy item.

itemid
UInt32

The item identifier.

Returns

The hierarchy item.

Remarks

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

Applies to