ImmutableList<T>.Builder.Exists(Predicate<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定不可变列表是否包含与指定谓词定义的条件匹配的元素。
public:
virtual bool Exists(Predicate<T> ^ match);
public:
bool Exists(Predicate<T> ^ match);
public bool Exists(Predicate<T> match);
abstract member Exists : Predicate<'T> -> bool
override this.Exists : Predicate<'T> -> bool
member this.Exists : Predicate<'T> -> bool
Public Function Exists (match As Predicate(Of T)) As Boolean
参数
- match
- Predicate<T>
定义要搜索的元素条件的委托。
返回
true 如果不可变列表包含一个或多个与指定谓词定义的条件匹配的元素,否则,为 false.