IVsHierarchyItem, interface

Contains instance property information for a single item in an IVsUIHierarchyWindow.

Cette API n'est pas conforme CLS. 

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

Syntaxe

'Déclaration
<CLSCompliantAttribute(False)> _
Public Interface IVsHierarchyItem _
    Inherits ISupportDisposalNotification, INotifyPropertyChanged, INotifyPropertyChanging
[CLSCompliantAttribute(false)]
public interface IVsHierarchyItem : ISupportDisposalNotification, 
    INotifyPropertyChanged, INotifyPropertyChanging

Le type IVsHierarchyItem expose les membres suivants.

Propriétés

  Nom Description
Propriété publique AreChildrenRealized Indicates whether the child items of an IVsHierarchyItem have already been enumerated.
Propriété publique CanonicalName Gets the canonical name of the item, corresponding to the GetCanonicalName.
Propriété publique Children Gets the child items of this IVsHierarchyItem.
Propriété publique HierarchyIdentity Gets the identity that represents this item.
Propriété publique IsBold Gets or sets whether this item should be rendered bold in an IVsUIHierarchyWindow.
Propriété publique IsCut Gets or sets whether this item should be rendered as a cut item in an IVsUIHierarchyWindow.
Propriété publique IsDisposed Determines if the item is disposed. (Hérité de ISupportDisposalNotification.)
Propriété publique Parent Gets the parent IVsHierarchyItem for this item.
Propriété publique Text Gets the text caption for the item in the IVsUIHierarchyWindow, corresponding to the VSHPROPID_Caption property from GetProperty.

Début

Événements

  Nom Description
Événement public PropertyChanged Se produit lorsqu'une valeur de propriété est modifiée. (Hérité de INotifyPropertyChanged.)
Événement public PropertyChanging Se produit lorsqu'une valeur de propriété change. (Hérité de INotifyPropertyChanging.)

Début

Remarques

An IVsHierarchyItem has an associated IVsHierarchyItemIdentity that defines the IVsHierarchy/item identifier or IVsHierarchy/item identifier pair that represents the item. This interface also lets you get properties like text for the items and to enumerate its child and parent items.

A single item in the Solution Explorer (for example, a C# project node) can actually be composed of two different IVsHierarchy implementations with two different item identifiers. As a specific example, the “solution” is an IVsHierarchy representing the “tree” of items in the solution, but the solution’s IVsHierarchy does not know about the content of projects. A specific C# project in the solution is also a separate IVsHierarchy. The node representing the project itself might be node #50 in the IVsHierarchy for the solution, and node VSITEMID_ROOT in the IVsHierarchy for the project. IVsHierarchyItemIdentity and IVsHierarchyItem bind together these two different IVsHierarchy and item identifiers into a single concept.

Voir aussi

Référence

Microsoft.VisualStudio.Shell, espace de noms