OptionCollection.

IndexOf(Option) Method

Summary

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

Syntax

public int IndexOf(Option item)

Parameters

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

Return Value

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