ImmutableList<T>.FindAll(Predicate<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取符合指定述詞所定義之條件的所有專案。
public:
virtual System::Collections::Immutable::ImmutableList<T> ^ FindAll(Predicate<T> ^ match);
public:
System::Collections::Immutable::ImmutableList<T> ^ FindAll(Predicate<T> ^ match);
public System.Collections.Immutable.ImmutableList<T> FindAll(Predicate<T> match);
abstract member FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
override this.FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
member this.FindAll : Predicate<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function FindAll (match As Predicate(Of T)) As ImmutableList(Of T)
參數
- match
- Predicate<T>
代表定義要搜尋元素的條件。
傳回
一個不可變的清單,包含所有符合指定謂詞定義條件的元素(若找到);否則,則是一個空且不可變的清單。