Firebird ADO.NET Provider SDK Documentation - v1.7

StringParser.IndexOf Method (String, Int32)

Returns the index of the substring in the string starting on index startIndex. If the substring does not exists the method returns -1.

[Visual Basic]
Overloads Public Function IndexOf( _
   ByVal substring As String, _
   ByVal startIndex As Integer _
) As Integer
[C#]
public int IndexOf(
   string substring,
   int startIndex
);

Parameters

substring
The string to be located.
startIndex
The start index of the source string where parser will start.

Return Value

The index of the substring or -1 if the string does not exists within the source string. If the the substring is empty method returns startIndex.

Remarks

The instance parses for the substring in a case sensitive or intensive way, as you specify at class construction.

See Also

StringParser Class | FirebirdSql.Data.Firebird.Isql Namespace | StringParser.IndexOf Overload List