FilterCollection.

IndexOf(Filter) Method

Summary

Retrieves the index of a specified NAnt.Core.Filters.Filter object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Filters
Containing Type
FilterCollection

Syntax

public int IndexOf(Filter item)

Parameters

Name Type Description
item Filter The NAnt.Core.Filters.Filter object for which the index is returned.

Return Value

Type Description
int The index of the specified NAnt.Core.Filters.Filter. If the NAnt.Core.Filters.Filter is not currently a member of the collection, it returns -1.