Share via


String.IndexOf Method

Reports the index number, or character position, of the first occurrence of a specified String object or one or more specified Unicode characters in the current String object.

Overload List

Name Description
String.IndexOf (Char) Reports the index number, or character position, of the first occurrence of a specified Unicode character in the current String object.
String.IndexOf (Char, Int32) Reports the index number, or character position, of the first occurrence of a specified Unicode character in the current String object. The search starts at a specified character position.
String.IndexOf (Char, Int32, Int32) Reports the index number, or character position, of the first occurrence of the specified Unicode character in the current String object. The search starts at a specified character position and examines a specified number of character positions.
String.IndexOf (String) Reports the index number, or character position, of the first occurrence of the specified String object in the current String object.
String.IndexOf (String, Int32) Reports the index number, or character position, of the first occurrence of the specified String object in the current String object. The search starts at a specified character position.
String.IndexOf (String, Int32, Int32) Reports the index number, or character position, of the first occurrence of the 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, 4.1, and 4.2.

See Also

Reference

String Class
String Members
System Namespace