NAnt SDK Documentation - v0.92 |

# TarFileSetCollection.IndexOf Method

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

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

#### Parameters

item
  The TarFileSet object for which the index is returned.

#### Return Value

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

#### See Also

TarFileSetCollection Class | NAnt.Compression.Types Namespace