IVsLibraryMgr.GetLibraryAt Method
Returns an IVsLibrary interface for the requested library.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetLibraryAt ( _
nLibIndex As UInteger, _
<OutAttribute> ByRef ppLibrary As IVsLibrary _
) As Integer
'Usage
Dim instance As IVsLibraryMgr
Dim nLibIndex As UInteger
Dim ppLibrary As IVsLibrary
Dim returnValue As Integer
returnValue = instance.GetLibraryAt(nLibIndex, _
ppLibrary)
int GetLibraryAt(
uint nLibIndex,
out IVsLibrary ppLibrary
)
int GetLibraryAt(
[InAttribute] unsigned int nLibIndex,
[OutAttribute] IVsLibrary^% ppLibrary
)
abstract GetLibraryAt :
nLibIndex:uint32 *
ppLibrary:IVsLibrary byref -> int
function GetLibraryAt(
nLibIndex : uint,
ppLibrary : IVsLibrary
) : int
Parameters
- nLibIndex
Type: System.UInt32
[in] Specifies the zero-based index of the library of interest.
- ppLibrary
Type: Microsoft.VisualStudio.Shell.Interop.IVsLibrary%
[out] Pointer to an IVsLibrary interface.
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 vsshell.idl:
HRESULT IVsLibraryMgr::GetLibraryAt(
[in] ULONG nLibIndex,
[out, retval] IVsLibrary **ppLibrary
);
The environment's object manager obtains a count of the number of libraries in the library manager by calling GetCount. The nLibIndex parameter is a zero based index to one of the IVsLibrary implementations in the library manager. Once the IVsLibrary interface is returned, the environment uses IVsLibrary methods to obtain information about objects in the library.
.NET Framework Security
- 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.