Bridge

String..::..IndexOfAny Method (array<Char>[]()[][])

Reports the zero-based index of the first occurrence in this instance of any character in a specified array of Unicode characters.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public int IndexOfAny(
	char[] anyOf
)
<TemplateAttribute> _
Public Function IndexOfAny ( _
	anyOf As Char() _
) As Integer
[TemplateAttribute]
public:
int^ IndexOfAny(
	array<wchar_t^>^ anyOf
)

Parameters

anyOf
Type: array<System..::..Char>[]()[][]
A Unicode character array containing one or more characters to seek.

Return Value

The zero-based index position of the first occurrence in this instance where any character in anyOf was found; -1 if no character in anyOf was found.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionanyOf is null.