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




item
The object to locate in the ObjectSet. The value can be null for reference types.
index
The zero-based starting index of the backward search.
count
The number of elements in the section to search.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ObjectSet that contains the specified number of elements and ends at the specified index.

Syntax

Visual Basic (Declaration) 
Overloads Public Function LastIndexOf( _
   ByVal item As T, _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim item As T
Dim index As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.LastIndexOf(item, index, count)
C# 
public int LastIndexOf( 
   T item,
   int index,
   int count
)
Managed Extensions for C++ 
public: int LastIndexOf( 
   T item,
   int index,
   int count
) 
C++/CLI 
public:
int LastIndexOf( 
   T item,
   int index,
   int count
) 

Parameters

item
The object to locate in the ObjectSet. The value can be null for reference types.
index
The zero-based starting index of the backward search.
count
The number of elements in the section to search.

Return Value

The zero-based index of the last occurrence of item within the range of elements in the ObjectSet that contains count number of elements and ends at index, if found; otherwise, -1.

Requirements

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

See Also