語言

ImmutableList.RemoveRange<T> 方法

定義

從此清單中移除指定的值。

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

清單上的物品類型。

參數

list
IImmutableList<T>

搜尋清單。

items
IEnumerable<T>

若匹配需移除的項目已在此列表中。

傳回

一個移除元素的新不變清單。

適用於