TaskItems.Item Method

Returns a TaskItem object in a TaskItems collection.

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

Syntax

'Declaration
Function Item ( _
    index As Object _
) As TaskItem
'Usage
Dim instance As TaskItems 
Dim index As Object 
Dim returnValue As TaskItem 

returnValue = instance(index)
TaskItem Item(
    Object index
)
TaskItem^ Item(
    [InAttribute] Object^ index
)
function Item(
    index : Object
) : TaskItem

Parameters

Return Value

Type: EnvDTE.TaskItem
A TaskItem object.

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.

.NET Framework Security

See Also

Reference

TaskItems Interface

TaskItems Members

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples