Chili.Opf3 Send comments on this topic.
FindIndex(Int32,Generic Predicate) Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class > FindIndex Method : FindIndex(Int32,Generic Predicate) Method




startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.
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 the ObjectSet that extends from the specified index to the last element.

Syntax

Visual Basic (Declaration) 
Overloads Public Function FindIndex( _
   ByVal startIndex As Integer, _
   ByVal match As Predicate(Of T) _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim startIndex As Integer
Dim match As Predicate(Of T)
Dim value As Integer
 
value = instance.FindIndex(startIndex, match)
C# 
public int FindIndex( 
   int startIndex,
   Predicate<T> match
)
Managed Extensions for C++ 
public: int FindIndex( 
   int startIndex,
   Predicate<T>* match
) 
C++/CLI 
public:
int FindIndex( 
   int startIndex,
   Predicate<T>^ match
) 

Parameters

startIndex
The zero-based starting index of the search.
match
The Predicate delegate that defines the conditions of the element to search for.

Return Value

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

Exceptions

ExceptionDescription
ArgumentNullExceptionMatch is null.
ArgumentOutOfRangeExceptionStartIndex is outside the range of valid indexes for the ObjectSet.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also