Partager via


IVsHierarchyItemManager.TryGetHierarchyItemIdentity, méthode

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

Espace de noms :  Microsoft.VisualStudio.Shell
Assembly :  Microsoft.VisualStudio.Shell.Immutable.11.0 (dans Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntaxe

'Déclaration
Function TryGetHierarchyItemIdentity ( _
    hierarchy As IVsHierarchy, _
    itemid As UInteger, _
    <OutAttribute> ByRef identity As IVsHierarchyItemIdentity _
) As Boolean
bool TryGetHierarchyItemIdentity(
    IVsHierarchy hierarchy,
    uint itemid,
    out IVsHierarchyItemIdentity identity
)

Paramètres

Valeur de retour

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

Remarques

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.

Sécurité .NET Framework

Voir aussi

Référence

IVsHierarchyItemManager Interface

Microsoft.VisualStudio.Shell, espace de noms