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 إذا لم يُعثر عليه.

انظر أيضًا