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>

如果在這個清單中找到相符項目時要移除的項目。

傳回

已移除項目的新不可變清單。

適用於