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

定义

如果至少有一个元素满足给定条件,则返回 true。

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

参数

match
Predicate<T>

状态.

返回

Boolean

如果集合中存在谓词为其返回 true 的元素,则为 true。

适用于