CompositeCollection.IndexOf(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the index in this collection where the given item is found.
public:
virtual int IndexOf(System::Object ^ indexItem);
public int IndexOf (object indexItem);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (indexItem As Object) As Integer
Parameters
- indexItem
- Object
The item to retrieve the index for.
Returns
If the item appears in the collection, then the zero-based index in the collection where the given item is found; otherwise, -1
.
Implements
Applies to
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.