共用方式為


IImmutableList<T>.RemoveRange 方法

定義

多載

RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

從清單中移除指定的物件。

RemoveRange(Int32, Int32)

IImmutableList<T> 移除的項目範圍。

RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

從清單中移除指定的物件。

public:
 System::Collections::Immutable::IImmutableList<T> ^ RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.IImmutableList<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.IImmutableList<T> RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
abstract member RemoveRange : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
Public Function RemoveRange (items As IEnumerable(Of T), equalityComparer As IEqualityComparer(Of T)) As IImmutableList(Of T)

參數

items
IEnumerable<T>

要從清單中移除的物件。

equalityComparer
IEqualityComparer<T>

用來判斷 items 是否符合清單中任何物件的相等比較子。

傳回

如果 items 符合清單中的物件,則為已移除指定之物件的新不可變清單。

適用於

RemoveRange(Int32, Int32)

IImmutableList<T> 移除的項目範圍。

public:
 System::Collections::Immutable::IImmutableList<T> ^ RemoveRange(int index, int count);
public System.Collections.Immutable.IImmutableList<T> RemoveRange (int index, int count);
abstract member RemoveRange : int * int -> System.Collections.Immutable.IImmutableList<'T>
Public Function RemoveRange (index As Integer, count As Integer) As IImmutableList(Of T)

參數

index
Int32

要移除之項目範圍內之以零為起始的起始索引。

count
Int32

要移除的項目數目。

傳回

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

適用於