EyeshotCollection<T>.FindIndex (Int32, Predicate<T>) Method

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in this collection that extends from the specified index to the last element.
Public Function FindIndex( _ 
ByVal startIndex As Integer, _ 
ByVal match As Predicate(Of T) _ 
) As Integer
This language is not supported or no code example is available.
public int FindIndex( 
int startIndex
Predicate<T> match 
)
This language is not supported or no code example is available.

Parameters

startIndex
int

The zero-based starting index of the search.

match
Predicate<T>

The predicate delegate that defines the conditions of the element to search for.

Return Value

int

The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, -1.

Exception type Condition

ArgumentNullException

match is null.

ArgumentOutOfRangeException

startIndex is outside the range of valid indexes for this collection.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition