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
'宣言
Function GetHierarchyItem ( _
hierarchy As IVsHierarchy, _
itemid As UInteger _
) As IVsHierarchyItem
IVsHierarchyItem GetHierarchyItem(
IVsHierarchy hierarchy,
uint itemid
)
Parameters
- hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The hierarchy for which to get or create the new hierarchy item.
- itemid
Type: System.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
- 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.