Partager via


IVsHierarchyItemManager Interface

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

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Interface IVsHierarchyItemManager
[CLSCompliantAttribute(false)]
public interface IVsHierarchyItemManager
[CLSCompliantAttribute(false)]
public interface class IVsHierarchyItemManager
[<CLSCompliantAttribute(false)>]
type IVsHierarchyItemManager =  interface end
public interface IVsHierarchyItemManager

The IVsHierarchyItemManager type exposes the following members.

Properties

  Name Description
Public property IsChangingItems Gets whether item additions or removals from an IVsHierarchy are currently being processed.

Top

Methods

  Name Description
Public method GetHierarchyItem Gets or creates an IVsHierarchyItem corresponding to the specified hierarchy and item identifier.
Public method TryGetHierarchyItem Gets a cached IVsHierarchyItem representing the specified hierarchy and item identifier, if one has already been created.
Public method TryGetHierarchyItemIdentity Gets a cached IVsHierarchyItemIdentity representing the specified hierarchy and item identifier, if one has already been created.

Top

Events

  Name Description
Public event AfterInvalidateItems Event raised after an OnInvalidateItems notification occurs for an item.
Public event OnItemAdded Event raised after an OnItemAdded notification occurs for an item.

Top

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.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace