| StringLastIndexOf Method (String, StringComparison) | 
Reports the zero-based index of the last occurrence of a specified string within the current 
String object. A parameter specifies the type of search to use for the specified string.
 
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntaxpublic int LastIndexOf(
	string value,
	StringComparison comparisonType
)
Parameters
- value
 - Type: SystemString
The string to seek.  - comparisonType
 - Type: SystemStringComparison
One of the enumeration values that specifies the rules for the search.  
Return Value
Type: 
Int32The index position of the 
value parameter if that string is found, or -1 if it is not. If 
value is 
Empty, the return value is the last index position in this instance.
Exceptions
See Also