NAnt SDK Documentation - v0.92 |

# ModuleCollection.IndexOf Method

Gets the location of a Module in the collection.

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

#### Parameters

value
  The Module object to locate.

#### Return Value

The zero-based location of the Module in the collection.

#### Remarks

If the Module is not currently a member of the collection, -1 is returned.

#### See Also

ModuleCollection Class | NAnt.DotNet.Types Namespace