ReadOnlyLinkedElementCollection<T>.Exists(Predicate<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果至少有一个元素满足给定条件,则返回 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>
状态.
返回
如果集合中存在谓词为其返回 true 的元素,则为 true。