EnvironmentVariableCollection.

IndexOf(EnvironmentVariable) Method

Summary

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

Syntax

public int IndexOf(EnvironmentVariable item)

Parameters

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

Return Value

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