NAnt SDK Documentation - v0.85-nightly-2005-11-09

DirScannerStringCollection.IndexOf Method 

[This is preliminary documentation and subject to change.]

Searches for the specified string and returns the zero-based index of the first occurrence within the DirScannerStringCollection.

[Visual Basic]
Overridable Public Function IndexOf( _
   ByVal value As String _
) As Integer
[C#]
new public virtual int IndexOf(
   string value
);

Parameters

value
The string to locate. The value can be a null reference (Nothing in Visual Basic).

Return Value

The zero-based index of the first occurrence of value in the DirScannerStringCollection, if found; otherwise, -1.

Remarks

String comparisons within the DirScannerStringCollection are only case-sensitive if the filesystem on which value is located, is case-sensitive.

See Also

DirScannerStringCollection Class | NAnt.Core Namespace