語言

ImmutableList<T>.Builder.Exists(Predicate<T>) 方法

定義

判斷不可變清單是否包含符合指定述詞所定義條件的專案。

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

適用於