System::Collections::IList::IndexOf méthode

IList::IndexOf method

Obtient le premier indice de l’élément spécifié.

virtual int System::Collections::IList::IndexOf(SharedPtr<System::Object> item) const =0
ParamètreTypeDescription
élémentSharedPtr<System::Object>L’élément à rechercher.

ReturnValue

L’index de la première occurrence de l’élément spécifié, sinon -1.

Voir aussi