Condividi tramite


IVsSimpleLibrary2 Interface

A simplified version of the IVsLibrary2 interface.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Dichiarazione
<InterfaceTypeAttribute()> _
<GuidAttribute("2F328444-6E74-48B4-8B95-08015F9D65D9")> _
Public Interface IVsSimpleLibrary2
'Utilizzo
Dim instance As IVsSimpleLibrary2
[InterfaceTypeAttribute()]
[GuidAttribute("2F328444-6E74-48B4-8B95-08015F9D65D9")]
public interface IVsSimpleLibrary2
[InterfaceTypeAttribute()]
[GuidAttribute(L"2F328444-6E74-48B4-8B95-08015F9D65D9")]
public interface class IVsSimpleLibrary2
[<InterfaceTypeAttribute()>]
[<GuidAttribute("2F328444-6E74-48B4-8B95-08015F9D65D9")>]
type IVsSimpleLibrary2 =  interface end
public interface IVsSimpleLibrary2

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

A managed code library should implement this interface to avoid potential memory leaks in calls to the GetSeparatorStringWithOwnership and GetGuid methods.

Notes to Callers

This interface is passed to the RegisterSimpleLibrary method in the IVsObjectManager2 interface. The object that was passed to the RegisterSimpleLibrary method can be returned by a call to the FindLibrary method in the IVsObjectManager2 interface. However, you must call the QueryInterface method on the returned IVsLibrary2 object to obtain the IVsSimpleLibrary2 interface.

See Also

Reference

IVsSimpleLibrary2 Members

Microsoft.VisualStudio.Shell.Interop Namespace