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