ArgumentCollection.

IndexOf(Argument) Method

Summary

Retrieves the index of a specified NAnt.Core.Types.Argument object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Containing Type
ArgumentCollection

Syntax

public int IndexOf(Argument item)

Parameters

Name Type Description
item Argument The NAnt.Core.Types.Argument object for which the index is returned.

Return Value

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