String..::..LastIndexOfAny Method (array<Char>[]()[][], 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.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public int LastIndexOfAny( char[] ch, int startIndex )
<TemplateAttribute> _ Public Function LastIndexOfAny ( _ ch As Char(), _ startIndex As Integer _ ) As Integer
[TemplateAttribute] public: int^ LastIndexOfAny( array<wchar_t^>^ ch, int^ startIndex )
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.
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
Exception | Condition |
---|---|
System..::..ArgumentNullException | anyOf is null. |
System..::..ArgumentOutOfRangeException | The current instance does not equal Empty, and startIndex specifies a position that is not within this instance. |