NAnt SDK Documentation - v0.92

CompilerWarningCollection.IndexOf Method 

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

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

Parameters

item
The CompilerWarning object for which the index is returned.

Return Value

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

See Also

CompilerWarningCollection Class | NAnt.DotNet.Types Namespace