NAnt SDK Documentation - v0.92

EnvironmentVariableCollection.IndexOf Method 

Retrieves the index of a specified EnvironmentVariable object in the collection.

[Visual Basic]
Public Function IndexOf( _
   ByVal item As EnvironmentVariable _
) As Integer
[C#]
public int IndexOf(
   EnvironmentVariable item
);

Parameters

item
The EnvironmentVariable object for which the index is returned.

Return Value

The index of the specified EnvironmentVariable. If the EnvironmentVariable is not currently a member of the collection, it returns -1.

See Also

EnvironmentVariableCollection Class | NAnt.Core.Types Namespace