NAnt SDK Documentation - v0.92 |

# WebMapCollection.IndexOf Method

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

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

#### Parameters

item
  The WebMap object for which the index is returned.

#### Return Value

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

#### See Also

WebMapCollection Class | NAnt.VSNet.Types Namespace