Freigeben über


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
'Usage
Dim instance As IVsObjectManager2
Dim guidLibrary As Guid
Dim ppLib As IVsLibrary2
Dim returnValue As Integer

returnValue = instance.FindLibrary(guidLibrary, _
    ppLib)
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: System.Guid%
    [in] The Guid that identifies the registered library. For more information, see vsshell80.idl, VS Browse Libraries section.

Return Value

Type: System.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

IVsObjectManager2 Members

Microsoft.VisualStudio.Shell.Interop Namespace