PackageCollection.

IndexOf(Package) Method

Summary

Retrieves the index of a specified NAnt.DotNet.Types.Package object in the collection.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Types
Containing Type
PackageCollection

Syntax

public int IndexOf(Package item)

Parameters

Name Type Description
item Package The NAnt.DotNet.Types.Package object for which the index is returned.

Return Value

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