CommandLineArgumentCollection.

IndexOf(CommandLineArgument) Method

Summary

Retrieves the index of a specified NAnt.Core.Util.CommandLineArgument object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Containing Type
CommandLineArgumentCollection

Syntax

public int IndexOf(CommandLineArgument item)

Parameters

Name Type Description
item CommandLineArgument The NAnt.Core.Util.CommandLineArgument object for which the index is returned.

Return Value

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