ImmutableList.RemoveRange<T>(IImmutableList<T>, IEnumerable<T>) 方法

定义

从此列表中移除指定的值。Removes the specified values from this list.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::IImmutableList<T> ^ RemoveRange(System::Collections::Immutable::IImmutableList<T> ^ list, System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.IImmutableList<T> RemoveRange<T> (this System.Collections.Immutable.IImmutableList<T> list, System.Collections.Generic.IEnumerable<T> items);
static member RemoveRange : System.Collections.Immutable.IImmutableList<'T> * seq<'T> -> System.Collections.Immutable.IImmutableList<'T>
<Extension()>
Public Function RemoveRange(Of T) (list As IImmutableList(Of T), items As IEnumerable(Of T)) As IImmutableList(Of T)

类型参数

T

列表中项的类型。The type of items in the list.

参数

list
IImmutableList<T>

要搜索的列表。The list to search.

items
IEnumerable<T>

在此列表中找到匹配项时要移除的项。The items to remove if matches are found in this list.

返回

IImmutableList<T>

已移除元素的新不可变列表。A new immutable list with the elements removed.

适用于