Returns the index of the last occurrence of a specified string in the provided range of the current instance.
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 last substring in the current instance that is equal to value . value was found. -1 value was not found.
Type Reason ArgumentNullException value is a null reference. ArgumentOutOfRangeException startIndex or count is less than zero.
-or-
startIndex - count is smaller than -1.
The search begins at startIndex and continues until startIndex - count + 1.
This method is case-sensitive.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0