Compartir a través de


TaskItems.Item(Object) Method

Definition

Returns a TaskItem object in a TaskItems collection.

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

Parameters

index
Object

Required. The index of the TaskItem object to return.

Returns

A TaskItem object.

Attributes

Remarks

The value passed to Index is either an integer that is an index to a TaskItem object in its TaskItems collection or the name a TaskItem 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