ImmutableList<T>.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

適用於