NAnt SDK Documentation - v0.92

NUnit2TestCollection.IndexOf Method 

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

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

Parameters

item
The NUnit2Test object for which the index is returned.

Return Value

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

See Also

NUnit2TestCollection Class | NAnt.NUnit2.Types Namespace