共用方式為


IVsObjectManager2 Members

Include Protected Members
Include Inherited Members

Used by a VSPackage to register and unregister the symbol libraries with the Visual Studio object manager and create component sets that can be browsed. To obtain a reference to the Visual Studio object manager, call global service provider which is passed to you by the SetSite method.

The IVsObjectManager2 type exposes the following members.

Methods

  Name Description
Public method CreateCombinedBrowseComponentSet Creates an empty component set which cam be manually populated with the components from simple sets and removes duplicate components. The component set can be used by a library to present project references in the Object Browser.
Public method CreateProjectReferenceSet Creates a simple component set which is automatically populated and synchronized with Visual Studio project references.
Public method CreateSimpleBrowseComponentSet Creates an empty component set which can be manually populated with components that can be browsed.
Public method EnumLibraries Retrieves a list of all symbol libraries currently registered with the Visual Studio object manager.
Public method FindLibrary Finds a specific symbol library registered with the with the Visual Studio object manager.
Public method GetListAndIndex Finds an IVsObjectList2 and an index of a symbol defined by IVsNavInfo.
Public method ParseDataObject Parses the data object created by Class View during drag-drop or copy operations.
Public method RegisterLibrary Registers a symbol library with the Visual Studio object manager.
Public method RegisterSimpleLibrary Registers a managed code symbol library with the Visual Studio object manager.
Public method UnregisterLibrary Unregisters a symbol library.

Top

See Also

Reference

IVsObjectManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace