Mono Class Library: System.String Overview | MembersSystem.String.IndexOf Method |
Returns the index of the first occurrence of a specified string in the current instance, with the search over the specified range starting at the provided index. [Edit]
|
A int that indicates the result of the search for value in the current instance as follows:
[Edit]
Return Value Description A zero-based number equal to the index of the start of the first substring in the current instance that is equal to value . value was found starting at the index returned. -1 value was not found.
Type Reason ArgumentNullException value is a null reference. [Edit] ArgumentOutOfRangeException startIndex or count is negative
-or-
startIndex + count is greater than the length of the current instance.
[Edit]
The search begins at startIndex and continues until startIndex + count - 1 is reached. The character at startIndex + count is not included in the search.
This method is case-sensitive.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0