BuildListenerCollection.

IndexOf(IBuildListener) Method

Summary

Retrieves the index of a specified NAnt.Core.IBuildListener object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Containing Type
BuildListenerCollection

Syntax

public int IndexOf(IBuildListener item)

Parameters

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

Return Value

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