IVsLibraryMgr::GetLibraryAt Method (UInt32, IVsLibrary^)

 

Returns an IVsLibrary interface for the requested library.

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

int GetLibraryAt(
	unsigned int nLibIndex,
	[OutAttribute] IVsLibrary^% ppLibrary
)

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.

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.

Return to top
Show: