Share via


IVsHierarchyItemManager Interface

Definition

Important

This API is not CLS-compliant.

Accesses the data model used by an IVsUIHierarchyWindow (like the Solution Explorer).

public interface class IVsHierarchyItemManager
public interface class IVsHierarchyItemManager
__interface IVsHierarchyItemManager
[System.CLSCompliant(false)]
public interface IVsHierarchyItemManager
public interface IVsHierarchyItemManager
[<System.CLSCompliant(false)>]
type IVsHierarchyItemManager = interface
type IVsHierarchyItemManager = interface
Public Interface IVsHierarchyItemManager
Attributes

Remarks

This interface is a Managed Extensibility Framework (MEF) service that can be imported by a MEF component. Given an IVsHierarchy and an itemid (just a UINT representing a “key” to one of the items in the hierarchy), the IVsHierarchyItemManager can return an IVsHierarchyItem or IVsHierarchyItemIdentity representing that item.

Properties

IsChangingItems

Gets whether or not item additions or removals from an IVsHierarchy are currently being processed. This property will be true when changes from one of the following events are being processed:

IVsHierarchyEvents.OnItemAdded IVsHierarchyEvents.OnItemDeleted IVsHierarchyEvents.OnItemsAppended IVsHierarchyEvents.OnInvalidateItems.

Methods

GetHierarchyItem(IVsHierarchy, UInt32)

Gets or creates an IVsHierarchyItem corresponding to the specified hierarchy and item identifier.

TryGetHierarchyItem(IVsHierarchy, UInt32, IVsHierarchyItem)

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

TryGetHierarchyItemIdentity(IVsHierarchy, UInt32, IVsHierarchyItemIdentity)

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

Events

AfterInvalidateItems

Event raised after an OnInvalidateItems(UInt32) notification occurs for an item.

OnItemAdded

Event raised after an OnItemAdded(UInt32, UInt32, UInt32) notification occurs for an item.

Applies to