Share via


String.IndexOfAny Method

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

Overload List

Name Description
String.IndexOfAny (Char[]) Reports the index number, or character position, of the first occurrence in the current String object of any character within a specified array of Unicode characters.
String.IndexOfAny (Char[], Int32) Reports the index number, or character position, of the first occurrence in the current String object of any character within a specified array of Unicode characters.
String.IndexOfAny (Char[], Int32, Int32) Reports the index number, or character position, of the first occurrence in the current String object of any character within a specified array of Unicode characters. 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