IVsObjectManager2 接口

定义

由 VSPackage 用来通过 Visual Studio 对象管理器注册和注销符号库,并创建可浏览的组件集。 若要获取对 Visual Studio 对象管理器的引用,请调用全局服务提供程序,该提供程序通过方法传递给你 SetSite(IServiceProvider)

public interface class IVsObjectManager2
public interface class IVsObjectManager2
__interface IVsObjectManager2
[System.Runtime.InteropServices.Guid("6A0392E4-68E8-4FBC-AFCF-85155533E48E")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsObjectManager2
[<System.Runtime.InteropServices.Guid("6A0392E4-68E8-4FBC-AFCF-85155533E48E")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsObjectManager2 = interface
Public Interface IVsObjectManager2
属性

实施者说明

由环境实现 Visual Studio 。

方法

CreateCombinedBrowseComponentSet(IVsCombinedBrowseComponentSet)

创建一个空组件集,使用简单集的组件手动填充凸轮,并删除重复组件。 库可以使用组件集来显示对象浏览器中的项目引用。

CreateProjectReferenceSet(Object, IVsSimpleBrowseComponentSet)

创建一个自动填充的简单组件集,并与 Visual Studio 项目引用同步。

CreateSimpleBrowseComponentSet(UInt32, Guid[], UInt32, IVsSimpleBrowseComponentSet)

创建一个空组件集,可以使用可浏览的组件手动填充此组件集。

EnumLibraries(IVsEnumLibraries2)

检索当前已向 Visual Studio 对象管理器注册的所有符号库的列表。

FindLibrary(Guid, IVsLibrary2)

使用 Visual Studio 对象管理器查找向注册的特定符号库。

GetListAndIndex(IVsNavInfo, UInt32, IVsObjectList2, UInt32)

查找 IVsObjectList2 和定义的符号的索引 IVsNavInfo

ParseDataObject(IDataObject, IVsSelectedSymbols)

分析在拖放或复制操作过程中由类视图创建的数据对象。

RegisterLibrary(IVsLibrary2, UInt32)

使用 Visual Studio 对象管理器注册符号库。

RegisterSimpleLibrary(IVsSimpleLibrary2, UInt32)

使用 Visual Studio 对象管理器注册托管代码符号库。

UnregisterLibrary(UInt32)

取消注册符号库。

适用于