Partager via


IVsHierarchyEvents Interface

Notifies clients of changes to the hierarchy.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
<GuidAttribute("6DDD8DC3-32B2-4BF1-A1E1-B6DA40526D1E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsHierarchyEvents
[GuidAttribute("6DDD8DC3-32B2-4BF1-A1E1-B6DA40526D1E")]
[InterfaceTypeAttribute()]
public interface IVsHierarchyEvents
[GuidAttribute(L"6DDD8DC3-32B2-4BF1-A1E1-B6DA40526D1E")]
[InterfaceTypeAttribute()]
public interface class IVsHierarchyEvents
[<GuidAttribute("6DDD8DC3-32B2-4BF1-A1E1-B6DA40526D1E")>]
[<InterfaceTypeAttribute()>]
type IVsHierarchyEvents =  interface end
public interface IVsHierarchyEvents

The IVsHierarchyEvents type exposes the following members.

Methods

  Name Description
Public method OnInvalidateIcon Notifies clients when changes are made to icons.
Public method OnInvalidateItems Notifies clients when changes are made to the item inventory of a hierarchy.
Public method OnItemAdded Notifies clients when an item is added to the hierarchy.
Public method OnItemDeleted Notifies clients when an item is deleted from the hierarchy.
Public method OnItemsAppended Notifies clients when items are appended to the end of the hierarchy.
Public method OnPropertyChanged Notifies clients when one or more properties of an item have changed.

Top

Remarks

The hierarchy notifies everyone who has been advised through the call to AdviseHierarchyEvents.

To see some code that uses this interface, see Walkthrough: Managing Universal Windows Projects.

Notes to Implementers

Implemented by clients that are interested in receiving notification of hierarchy changes from a particular hierarchy.

Notes to Callers

Called by VSPackages to respond to changes in a given hierarchy.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace