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
'宣言
Function FindLibrary ( _
ByRef guidLibrary As Guid, _
<OutAttribute> ByRef ppLib As IVsLibrary2 _
) As Integer
'使用
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
)
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.
ppLib
Type: Microsoft.VisualStudio.Shell.Interop.IVsLibrary2%[out] The IVsLibrary2 that represents requested library.
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.