語言

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

定義

多載

名稱 Description
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
來源:
ImmutableArray_1.cs
來源:
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
來源:
ImmutableArray_1.cs
來源:
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

從陣列中移除起始元素的 0 為基礎的索引。

count
Int32

從陣列中移除的元素數量。

傳回

移除指定元素的新陣列。

實作

備註

此成員為明確介面成員實作。 它只能在實 ImmutableArray<T> 例投射到 IImmutableList<T> 介面時使用。

適用於