Freigeben über


IVsLibraryMgr.GetLibraryAt(UInt32, IVsLibrary) Method

Definition

Returns an IVsLibrary interface for the requested library.

public:
 int GetLibraryAt(System::UInt32 nLibIndex, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLibrary ^ % ppLibrary);
public:
 int GetLibraryAt(unsigned int nLibIndex, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLibrary ^ &  ppLibrary);
int GetLibraryAt(unsigned int nLibIndex, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLibrary const & & ppLibrary);
public int GetLibraryAt (uint nLibIndex, out Microsoft.VisualStudio.Shell.Interop.IVsLibrary ppLibrary);
abstract member GetLibraryAt : uint32 * IVsLibrary -> int
Public Function GetLibraryAt (nLibIndex As UInteger, ByRef ppLibrary As IVsLibrary) As Integer

Parameters

nLibIndex
UInt32

[in] Specifies the zero-based index of the library of interest.

ppLibrary
IVsLibrary

[out] Pointer to an IVsLibrary interface.

Returns

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.

Applies to