[This is preliminary documentation and is subject to change.]
Determines the index of a specific item in the IList.
| C# | Visual Basic | Visual C++ |
protected int IndexOf( Object value )
Protected Function IndexOf ( _ value As Object _ ) As Integer
protected: int IndexOf( Object^ value )
- value (Object)
- The item to locate in the IList.
The index of value if found in the list; otherwise, -1.
Method access is protected. Only to be accessed by subclass.
| Exception | Condition |
|---|---|
| ArgumentNullException | Argument is a nullNothingnullptr reference. |