NAnt SDK Documentation - v0.92 |

# FilterBuilderCollection.IndexOf Method

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

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

#### Parameters

item
  The FilterBuilder object for which the index is returned.

#### Return Value

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

#### See Also

FilterBuilderCollection Class | NAnt.Core.Filters Namespace