Język

AsyncEnumerable.SkipLast<TSource> Metoda

Definicja

Zwraca nową sekwencję zawierającą elementy z source ostatnich count elementów kolekcji źródłowej pominiętych.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ SkipLast(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, int count);
public static System.Collections.Generic.IAsyncEnumerable<TSource> SkipLast<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, int count);
static member SkipLast : System.Collections.Generic.IAsyncEnumerable<'Source> * int -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function SkipLast(Of TSource) (source As IAsyncEnumerable(Of TSource), count As Integer) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<TSource>

Element IAsyncEnumerable<T> do zwracania elementów z.

count
Int32

Liczba elementów do pominięcia od końca sekwencji.

Zwraca

IAsyncEnumerable<TSource>

Nowa sekwencja zawierająca elementy z source minus count elementów z końca sekwencji.

Wyjątki

Parametr source ma wartość null.

Dotyczy