System::Collections::ObjectModel::Collection::IndexOf método

Collection::IndexOf method

Busca un elemento en la colección.

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override
ParámetroTipoDescripción
elementoconst T&Elemento a buscar.

ReturnValue

Index of first occurrence of specified item or -1 if not found.

Ver también