ImmutableList<T>.IImmutableList<T>.RemoveAll 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
移除与指定的谓词所定义的条件相匹配的所有元素。
virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.RemoveAll(Predicate<T> ^ match) = System::Collections::Immutable::IImmutableList<T>::RemoveAll;
C#
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.RemoveAll (Predicate<T> match);
abstract member System.Collections.Immutable.IImmutableList<T>.RemoveAll : Predicate<'T> -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.RemoveAll : Predicate<'T> -> System.Collections.Immutable.IImmutableList<'T>
Function RemoveAll (match As Predicate(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).RemoveAll
- match
- Predicate<T>
用于定义要移除的元素应满足的条件的委托。
已移除元素的新不可变列表。
此成员是显式接口成员的实现。 它只能在 ImmutableList<T> 实例被强制转换为 IImmutableList<T> 接口时使用。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |