System::Collections::IListImplRefType::IndexOf 方法

IListImplRefType::IndexOf method

获取项在容器中首次出现的索引。

virtual int System::Collections::IListImplRefType<T>::IndexOf(System::SharedPtr<System::Object> value) const override
ParameterType描述
valueSystem::SharedPtr<System::Object>要查找的项。

ReturnValue

项在容器中首次出现的索引,若未找到则为 -1。

另见