ImmutableList<T>.IImmutableList<T>.RemoveRange 方法

定義

從這個不可變清單移除一個範圍的元素。

多載

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

從這個符合項目指定的不可變清單移除一個範圍的元素。

IImmutableList<T>.RemoveRange(Int32, Int32)

從這個清單中的指定位置移除指定數目的元素。

備註

這個成員是明確介面成員實作, 只有在 ImmutableList<T> 執行個體轉換成 IImmutableList<T> 介面時,才能使用這個成員。

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

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs

從這個符合項目指定的不可變清單移除一個範圍的元素。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer) = System::Collections::Immutable::IImmutableList<T>::RemoveRange;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.RemoveRange (System.Collections.Generic.IEnumerable<T> items, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
abstract member System.Collections.Immutable.IImmutableList<T>.RemoveRange : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.RemoveRange : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.IImmutableList<'T>
Function RemoveRange (items As IEnumerable(Of T), equalityComparer As IEqualityComparer(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).RemoveRange

參數

items
IEnumerable<T>

從清單中要移除項目的範圍 (如有找到)。

equalityComparer
IEqualityComparer<T>

用來比較元素的相等比較子。

傳回

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

實作

例外狀況

itemsequalityComparernull

備註

這個成員是明確介面成員實作, 只有在 ImmutableList<T> 執行個體轉換成 IImmutableList<T> 介面時,才能使用這個成員。

適用於

IImmutableList<T>.RemoveRange(Int32, Int32)

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs

從這個清單中的指定位置移除指定數目的元素。

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.RemoveRange(int index, int count) = System::Collections::Immutable::IImmutableList<T>::RemoveRange;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.RemoveRange (int index, int count);
abstract member System.Collections.Immutable.IImmutableList<T>.RemoveRange : int * int -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.RemoveRange : int * int -> System.Collections.Immutable.IImmutableList<'T>
Function RemoveRange (index As Integer, count As Integer) As IImmutableList(Of T) Implements IImmutableList(Of T).RemoveRange

參數

index
Int32

要移除之元素範圍的起始索引。

count
Int32

要移除的項目數目。

傳回

已移除項目的新清單。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableList<T> 執行個體轉換成 IImmutableList<T> 介面時,才能使用這個成員。

適用於