ReadOnlyLinkedElementCollection<T>.FindIndex(Predicate<T>) 方法

定义

查找满足给定条件的第一个元素。Finds first element which satisfies a given condition.

public:
 int FindIndex(Predicate<T> ^ match);
public int FindIndex (Predicate<T> match);
member this.FindIndex : Predicate<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> -> int
Public Function FindIndex (match As Predicate(Of T)) As Integer

参数

match
Predicate<T>

状态.Condition.

返回

Int32

谓词为其返回 true 的列表中的第一个元素; 如果未找到,则为 null。First element in the list for which the predicate returns true or null if none found.

适用于