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
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe hierarchy for which to get or create the new hierarchy item.
itemid
Type: UInt32The 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.