Mono Class Library: System.String Overview | MembersSystem.String.IndexOfAny Method |
Returns the index of the first occurrence of any element in a specified Array of Unicode characters in the current instance, with the search over the specified range starting from the provided index. [Edit]
|
A int containing a positive value equal to the index of the first occurrence of an element of anyOf in the current instance; otherwise, -1 if no element of anyOf was found. [Edit]
Type Reason ArgumentNullException anyOf is a null reference. [Edit] ArgumentOutOfRangeException startIndex or count is negative.
-or-
startIndex + count is greater than the length of the current instance.
[Edit]
The search begins at startIndex and continues until startIndex + count - 1. The character at startIndex + count is not included in the search.
This method is case-sensitive.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0