Returns the index of the first occurrence of a specified
string in the current instance, with
the search starting from a specified index.
[Edit]
Parameters
- value
- The string for which to search.
[Edit]
- startIndex
- A int containing the index of the current instance from which to start searching.
[Edit]
Returns
A int that indicates the result of the search for
value in the current instance as follows:
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. |
[Edit]
Exceptions
Remarks
Requirements
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0