Share via


String.LastIndexOf Method

Reports the index number, or character position, of the last occurrence of a specified Unicode character or String object in the current String object.

Overload List

Name Description
String.LastIndexOf (Char) Reports the index number, or character position, of the last occurrence of a specified Unicode character in the current String object.
String.LastIndexOf (Char, Int32) Reports the index number, or character position, of the last occurrence of a specified Unicode character in the current String object. The search starts at a specified character position.
String.LastIndexOf (Char, Int32, Int32) Reports the index number, or character position, of the last occurrence in the current String object of a specified Unicode character within a specified substring. The search starts at a specified character position and examines a specified number of character positions.
String.LastIndexOf (String) Reports the index number, or character position, of the last occurrence of a specified String object in the current String object.
String.LastIndexOf (String, Int32) Reports the index number, or character position, of the last occurrence of a specified String object in the current String object. The search starts at a specified character position.
String.LastIndexOf (String, Int32, Int32) Reports the index number, or character position, of the last occurrence of a specified String object in the current String object. The search starts at a specified character position and examines a specified number of character positions.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

String Class
String Members
System Namespace