ArrayListIndexOf Method (Object) |
Searches for the specified
Object and returns the zero-based index of the first occurrence within the entire
ArrayList.
Namespace: System.CollectionsAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual int IndexOf(
Object value
)
Parameters
- value
- Type: SystemObject
The Object to locate in the ArrayList. The value can be null.
Return Value
Type:
Int32The zero-based index of the first occurrence of
value within the entire
ArrayList, if found; otherwise, -1.
See Also