NAnt SDK Documentation - v0.92 |

# FilterCollection.IndexOf Method

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

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

#### Parameters

item
  The Filter object for which the index is returned.

#### Return Value

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

#### See Also

FilterCollection Class | NAnt.Core.Filters Namespace