ToolBoxItems.Item(Object) 方法

定义

返回 ToolBoxItem 集合中的对象 ToolBoxItems

public:
 EnvDTE::ToolBoxItem ^ Item(System::Object ^ index);
public:
 EnvDTE::ToolBoxItem ^ Item(Platform::Object ^ index);
EnvDTE::ToolBoxItem Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.ToolBoxItem Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.ToolBoxItem
Public Function Item (index As Object) As ToolBoxItem

参数

index
Object

必需。 要返回的 ToolBoxItem 对象的索引。

返回

ToolBoxItem

ToolBoxItem 对象。

属性

注解

传递给的值 Index 为一个整数,该整数是 ToolBoxItem 对象在集合中的索引, ToolBoxItems 或者为 ToolBoxItem 集合中对象的名称。

Item ArgumentException 如果集合找不到与索引值对应的对象,则该方法将引发异常。

适用于