NAnt SDK Documentation - v0.92

BuildListenerCollection.IndexOf Method 

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

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

Parameters

item
The IBuildListener object for which the index is returned.

Return Value

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

See Also

BuildListenerCollection Class | NAnt.Core Namespace