NAnt SDK Documentation - v0.92 |

# TaskBuilderCollection.IndexOf Method

Retrieves the index of a specified TaskBuilder object in the collection.

[Visual Basic]
Public Function IndexOf( _
ByVal item As TaskBuilder _
) As Integer
[C#]
public int IndexOf(
TaskBuilder item
);

#### Parameters

item
  The TaskBuilder object for which the index is returned.

#### Return Value

The index of the specified TaskBuilder. If the TaskBuilder is not currently a member of the collection, it returns -1.

#### See Also

TaskBuilderCollection Class | NAnt.Core Namespace