NAnt SDK Documentation - v0.92 |

# DataTypeBaseBuilderCollection.IndexOf Method

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

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

#### Parameters

item
  The DataTypeBaseBuilder object for which the index is returned.

#### Return Value

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

#### See Also

DataTypeBaseBuilderCollection Class | NAnt.Core Namespace