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

定義

多載

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

從這個陣列中移除指定的項目。

IImmutableList<T>.RemoveRange(Int32, Int32)

傳回已移除指定位置處之項目的陣列。

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

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_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>

搜尋中所使用的相等比較子。

傳回

已移除項目的新陣列。

實作

備註

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

適用於

IImmutableList<T>.RemoveRange(Int32, Int32)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
ImmutableArray_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

要從陣列中移除的項目數。

傳回

已移除指定項目的新陣列。

實作

備註

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

適用於