System::Collections::Generic::List::FindIndex طريقة

List::FindIndex(int, int, System::Predicate<T>) method

يبحث عن عنصر يطابق شرطًا محددًا.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, int count, System::Predicate<T> match)
ParameterTypeالوصف
startIndexintالفهرس للبدء بالبحث منه.
countintعدد العناصر للبحث عبرها.
matchSystem::Predicate<T>Predicate للتحقق من العناصر باستخدام.

ReturnValue

فهرس العنصر المطابق أو -1 إذا لم يُعثر عليه.

انظر أيضًا

List::FindIndex(int, System::Predicate<T>) method

يبحث عن عنصر يطابق شرطًا محددًا.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, System::Predicate<T> match)
ParameterTypeالوصف
startIndexintالفهرس للبدء بالبحث منه.
matchSystem::Predicate<T>Predicate للتحقق من العناصر باستخدام.

ReturnValue

فهرس العنصر المطابق أو -1 إذا لم يُعثر عليه.

انظر أيضًا

List::FindIndex(System::Predicate<T>) method

يبحث عن عنصر يطابق شرطًا محددًا.

int System::Collections::Generic::List<T>::FindIndex(System::Predicate<T> match)
ParameterTypeالوصف
matchSystem::Predicate<T>Predicate للتحقق من العناصر باستخدام.

ReturnValue

فهرس العنصر المطابق أو -1 إذا لم يُعثر عليه.

انظر أيضًا