Searches for the specified object and returns the zero-based index of the last
occurrence within the entire
ObjectSet.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Function LastIndexOf( _
ByVal item As T _
) As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim item As T
Dim value As Integer
value = instance.LastIndexOf(item)
|
| C# | |
|---|
public int LastIndexOf(
T item
) |
| Managed Extensions for C++ | |
|---|
public: int LastIndexOf(
T item
) |
| C++/CLI | |
|---|
public:
int LastIndexOf(
T item
) |
Parameters
- item
- The object to locate in the ObjectSet. The
value can be null for reference types.
Return Value
The zero-based index of the last occurrence of item within the entire the
ObjectSet, if found; otherwise, -1.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also