NAnt SDK Documentation - v0.92 |

# ProjectEntryCollection.IndexOf Method

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

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

#### Parameters

item
  The ProjectEntry object for which the index is returned.

#### Return Value

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

#### See Also

ProjectEntryCollection Class | NAnt.VSNet Namespace