語言

ImmutableList<T>.RemoveRange 方法

定義

多載

名稱 Description
RemoveRange(IEnumerable<T>, IEqualityComparer<T>)

從此清單中移除指定的值。

RemoveRange(IEnumerable<T>)

從這個不可變清單中移除一系列元素。

RemoveRange(Int32, Int32)

從指定的索引開始,從這個不可變數中移除專案範圍,並包含指定的項目數目。

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

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

從此清單中移除指定的值。

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

參數

items
IEnumerable<T>

若匹配需移除的項目已在此列表中。

equalityComparer
IEqualityComparer<T>

搜尋時使用的等式比較器。

傳回

一個移除元素的新清單。

適用於

RemoveRange(IEnumerable<T>)

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

從這個不可變清單中移除一系列元素。

public:
 System::Collections::Immutable::ImmutableList<T> ^ RemoveRange(System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableList<T> RemoveRange(System.Collections.Generic.IEnumerable<T> items);
member this.RemoveRange : seq<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function RemoveRange (items As IEnumerable(Of T)) As ImmutableList(Of T)

參數

items
IEnumerable<T>

若在此列表中找到匹配,應移除其元素的集合。

傳回

一個移除元素的新清單。

適用於

RemoveRange(Int32, Int32)

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

從指定的索引開始,從這個不可變數中移除專案範圍,並包含指定的項目數目。

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

參數

index
Int32

開始移除的起始指標。

count
Int32

要移除的項目數目。

傳回

一個移除元素的新清單。

適用於