Freigeben über


_Solution.Item(Object) Method

Definition

Returns a Project object in a Projects collection.

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

Parameters

index
Object

Required. The index of the Project object to return.

Returns

A Project object.

Attributes

Remarks

The value passed to Index is either an integer that is an index to a Project object in its Projects collection or the name of a Project object in the collection.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

Applies to