Partager via


IVsObjectManager2.FindLibrary Method

Finds a specific symbol library registered with the with the Visual Studio object manager.

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

Syntax

'Declaration
Function FindLibrary ( _
    ByRef guidLibrary As Guid, _
    <OutAttribute> ByRef ppLib As IVsLibrary2 _
) As Integer
int FindLibrary(
    ref Guid guidLibrary,
    out IVsLibrary2 ppLib
)
int FindLibrary(
    [InAttribute] Guid% guidLibrary, 
    [OutAttribute] IVsLibrary2^% ppLib
)
abstract FindLibrary : 
        guidLibrary:Guid byref * 
        ppLib:IVsLibrary2 byref -> int
function FindLibrary(
    guidLibrary : Guid, 
    ppLib : IVsLibrary2
) : int

Parameters

  • guidLibrary
    Type: Guid%

    [in] The Guid that identifies the registered library. For more information, see vsshell80.idl, VS Browse Libraries section.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsObjectManager2::FindLibrary(
[in] REFGUID guidLibrary, 
[out] IVsLibrary2 **ppLib
);

.NET Framework Security

See Also

Reference

IVsObjectManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace