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

定義

判斷不可變清單中的每一個項目是否符合指定述詞所定義的條件。

public:
 virtual bool TrueForAll(Predicate<T> ^ match);
public:
 bool TrueForAll(Predicate<T> ^ match);
public bool TrueForAll (Predicate<T> match);
abstract member TrueForAll : Predicate<'T> -> bool
override this.TrueForAll : Predicate<'T> -> bool
member this.TrueForAll : Predicate<'T> -> bool
Public Function TrueForAll (match As Predicate(Of T)) As Boolean

參數

match
Predicate<T>

定義檢查項目所根據之條件的委派。

傳回

如果不可變清單中的每一個項目都符合指定述詞所定義的條件,則為 true,否則為 false。 如果清單中沒有元素,則傳回值為 true

適用於