ImmutableList<T>.IImmutableList<T>.RemoveRange Metoda

Definicja

Usuwa zakres elementów z tej niezmiennej listy.

Przeciążenia

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

Usuwa zakres elementów z tej niezmiennej listy, które są zgodne z określonymi elementami.

IImmutableList<T>.RemoveRange(Int32, Int32)

Usuwa określoną liczbę elementów w określonej lokalizacji z tej listy.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableList<T> wystąpienie jest rzutowe do interfejsu IImmutableList<T> .

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

Usuwa zakres elementów z tej niezmiennej listy, które są zgodne z określonymi elementami.

 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

Parametry

items
IEnumerable<T>

Zakres elementów do usunięcia z listy, jeśli zostanie znaleziony.

equalityComparer
IEqualityComparer<T>

Porównujący równość do użycia do porównywania elementów.

Zwraca

IImmutableList<T>

Niezmienialna lista z usuniętymi elementami.

Implementuje

Wyjątki

items lub equalityComparer ma wartość null.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableList<T> wystąpienie jest rzutowe do interfejsu IImmutableList<T> .

Dotyczy

IImmutableList<T>.RemoveRange(Int32, Int32)

Usuwa określoną liczbę elementów w określonej lokalizacji z tej listy.

 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

Parametry

index
Int32

Początkowy indeks zakresu elementów do usunięcia.

count
Int32

Liczba elementów do usunięcia.

Zwraca

IImmutableList<T>

Nowa lista z usuniętymi elementami.

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableList<T> wystąpienie jest rzutowe do interfejsu IImmutableList<T> .

Dotyczy