NAnt SDK Documentation - v0.92

CommandLineArgumentCollection.IndexOf Method 

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

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

Parameters

item
The CommandLineArgument object for which the index is returned.

Return Value

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

See Also

CommandLineArgumentCollection Class | NAnt.Core.Util Namespace