Export (0) Print
Expand All

TaskItems.Item Method

Returns a TaskItem object in a TaskItems collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

TaskItem Item(
	Object index


Type: System.Object
Required. The index of the TaskItem object to return.

Return Value

Type: EnvDTE.TaskItem
A TaskItem object.

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.

Community Additions

© 2015 Microsoft