IVsLibrary2 Interface
Describes the library and is used by the Object Manager to access pertinent symbols.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
<InterfaceTypeAttribute()> _
<GuidAttribute("EDD9F8A9-3FFE-4C4C-94F8-610B88E19160")> _
Public Interface IVsLibrary2
'使用
Dim instance As IVsLibrary2
[InterfaceTypeAttribute()]
[GuidAttribute("EDD9F8A9-3FFE-4C4C-94F8-610B88E19160")]
public interface IVsLibrary2
[InterfaceTypeAttribute()]
[GuidAttribute(L"EDD9F8A9-3FFE-4C4C-94F8-610B88E19160")]
public interface class IVsLibrary2
[<InterfaceTypeAttribute()>]
[<GuidAttribute("EDD9F8A9-3FFE-4C4C-94F8-610B88E19160")>]
type IVsLibrary2 = interface end
public interface IVsLibrary2
Remarks
The smallest unit a library can browse is referred to as a Browse Container. A library typically browses one type of Browse Container. Each project type implements one, and possibly more, libraries to track its symbols, objects, and so on. The package's IVsLibraryMgr tracks these libraries.
Libraries may be project specific, or global. Global libraries provide information on browse containers that are not a part of any project, but are added by a user through the Add Reference dialog. For more details on libraries and their relationship to the object browser see Object Browser and Class View.
See illustrations of the implementation and/or calling of this interface in the sample My C Package.
Notes to Implementers
The IVsLibrary2 interface is implemented when you want to provide object browsing.
注意
Managed code implementations should implement the IVsSimpleLibrary2 interface instead to avoid memory leaks.
Notes to Callers
This interface is passed to the RegisterLibrary method in the IVsObjectManager2 interface. This interface can then be returned by a call to the FindLibrary method in the IVsObjectManager2 interface.