System::Collections::IList::IndexOf 方法

IList::IndexOf method

获取指定项目的第一个索引。

virtual int System::Collections::IList::IndexOf(SharedPtr<System::Object> item) const =0
参数类型描述
SharedPtr<System::Object>要查找的项。

ReturnValue

指定项首次出现的索引;如果不存在则为 -1。

另见