IVsHierarchyItemManager 接口
Accesses the data model used by an IVsUIHierarchyWindow (like the Solution Explorer).
此 API 不兼容 CLS。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.Immutable.11.0(在 Microsoft.VisualStudio.Shell.Immutable.11.0.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
Public Interface IVsHierarchyItemManager
[CLSCompliantAttribute(false)]
public interface IVsHierarchyItemManager
IVsHierarchyItemManager 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
IsChangingItems | Gets whether item additions or removals from an IVsHierarchy are currently being processed. |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
GetHierarchyItem | Gets or creates an IVsHierarchyItem corresponding to the specified hierarchy and item identifier. |
![]() |
TryGetHierarchyItem | Gets a cached IVsHierarchyItem representing the specified hierarchy and item identifier, if one has already been created. |
![]() |
TryGetHierarchyItemIdentity | Gets a cached IVsHierarchyItemIdentity representing the specified hierarchy and item identifier, if one has already been created. |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
AfterInvalidateItems | Event raised after an OnInvalidateItems notification occurs for an item. |
![]() |
OnItemAdded | Event raised after an OnItemAdded notification occurs for an item. |
页首
扩展方法
名称 | 说明 | |
---|---|---|
![]() |
FindHierarchyItem | (由 HierarchyUtilities 定义。) |
页首
备注
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.