Bridge

String..::..LastIndexOfAny Method (array<Char>[]()[][], Int32, Int32)

Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The search starts at a specified character position and proceeds backward toward the beginning of the string for a specified number of character positions.

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

Syntax


[TemplateAttribute]
public int LastIndexOfAny(
	char[] ch,
	int startIndex,
	int count
)
<TemplateAttribute> _
Public Function LastIndexOfAny ( _
	ch As Char(), _
	startIndex As Integer, _
	count As Integer _
) As Integer
[TemplateAttribute]
public:
int^ LastIndexOfAny(
	array<wchar_t^>^ ch, 
	int^ startIndex, 
	int^ count
)

Parameters

ch
Type: array<System..::..Char>[]()[][]
startIndex
Type: System..::..Int32
The search starting position. The search proceeds from startIndex toward the beginning of this instance.
count
Type: System..::..Int32
The number of character positions to examine.

Return Value

The index position of the last occurrence in this instance where any character in anyOf was found; -1 if no character in anyOf was found or if the current instance equals Empty.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionanyOf is null.
System..::..ArgumentOutOfRangeExceptionThe current instance does not equal Empty, and count or startIndex is negative.-or- The current instance does not equal Empty, and startIndex minus count + 1 is less than zero.