Searches for an element that matches the conditions defined by the specified predicate,
and returns the zero-based index of the last occurrence within the range of elements
in the
ObjectView that contains the specified number of elements
and ends at the specified index.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Function FindLastIndex( _
ByVal startIndex As Integer, _
ByVal count As Integer, _
ByVal match As Predicate(Of T) _
) As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectView(Of T)
Dim startIndex As Integer
Dim count As Integer
Dim match As Predicate(Of T)
Dim value As Integer
value = instance.FindLastIndex(startIndex, count, match)
|
| Managed Extensions for C++ | |
|---|
public: int FindLastIndex(
int startIndex,
int count,
Predicate<T>* match
) |
Parameters
- startIndex
- The zero-based starting index of the backward search.
- count
- The number of elements in the section to search.
- match
- The Predicate delegate that defines the conditions of the element to search for.
Return Value
The zero-based index of the last occurrence of an element that matches the conditions
defined by match, if found; otherwise, -1.
Exceptions
| Exception | Description |
| ArgumentNullException | Match is null. |
| ArgumentOutOfRangeException | StartIndex is outside the range of valid indexes
for the ObjectView or Count is less then zero. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also