Udostępnij za pośrednictwem


Metoda IVsHierarchyItemManager.TryGetHierarchyItemIdentity —

Gets a cached IVsHierarchyItemIdentity 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 TryGetHierarchyItemIdentity ( _
    hierarchy As IVsHierarchy, _
    itemid As UInteger, _
    <OutAttribute> ByRef identity As IVsHierarchyItemIdentity _
) As Boolean
bool TryGetHierarchyItemIdentity(
    IVsHierarchy hierarchy,
    uint itemid,
    out IVsHierarchyItemIdentity identity
)

Parametry

Wartość zwracana

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

Uwagi

The returned IVsHierarchyItemIdentity provides information about related nested hierarchies. This method only returns an identity if the corresponding identity has previously been created by GetHierarchyItem.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

IVsHierarchyItemManager Interfejs

Przestrzeń nazw Microsoft.VisualStudio.Shell