IVsSelectedSymbols.GetItem(UInt32, IVsSelectedSymbol) 方法

定义

从由项编号指定的集合中的位置获取选定的符号。

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

参数

iItem
UInt32

中要从中检索所选 symbel 的位置

ppIVsSelectedSymbol
IVsSelectedSymbol

弄选定的符号。

返回

Int32

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

注解

COM 签名

从 vsshell80:

HRESULT IVsSelectedSymbols::GetItem(  
   [in] ULONG iItem,   
   [out] IVsSelectedSymbol **ppIVsSelectedSymbol  
);  

适用于