IVsLibraryMgr.GetLibraryAt(UInt32, IVsLibrary) 方法

定义

返回所 IVsLibrary 请求库的接口。

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

参数

nLibIndex
UInt32

中指定相关库的从零开始的索引。

ppLibrary
IVsLibrary

弄指向接口的指针 IVsLibrary

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsLibraryMgr::GetLibraryAt(  
   [in] ULONG nLibIndex,  
   [out, retval] IVsLibrary **ppLibrary  
);  

环境的对象管理器通过调用获取库管理器中的库数的计数 GetCountnLibIndex参数是 IVsLibrary 库管理器中某个实现的从零开始的索引。 IVsLibrary返回接口后,环境将使用 IVsLibrary 方法来获取有关库中的对象的信息。

适用于