_Solution.Item(Object) 方法

定义

返回 Project 集合中的对象 Projects

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

参数

index
Object

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

返回

Project

Project 对象。

属性

注解

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

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

适用于