Udostępnij za pośrednictwem


Metoda IVsHierarchyItemManager.TryGetHierarchyItem —

Gets a cached IVsHierarchyItem representing the specified hierarchy and item identifier, if one has already been created.

Przestrzeń nazw:  Microsoft.VisualStudio.Shell
Zestaw:  Microsoft.VisualStudio.Shell.Immutable.11.0 (w Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Składnia

'Deklaracja
Function TryGetHierarchyItem ( _
    hierarchy As IVsHierarchy, _
    itemid As UInteger, _
    <OutAttribute> ByRef item As IVsHierarchyItem _
) As Boolean
bool TryGetHierarchyItem(
    IVsHierarchy hierarchy,
    uint itemid,
    out IVsHierarchyItem item
)

Parametry

Wartość zwracana

Typ: System.Boolean
true if the IVsHierarchyItem exists and was returned, otherwise false.

Uwagi

The returned IVsHierarchyItem can be used to get properties about the item and to visit its parent and child items.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

IVsHierarchyItemManager Interfejs

Przestrzeń nazw Microsoft.VisualStudio.Shell