AsyncEnumerable.SkipLast<TSource> Метод

Определение

Возвращает новую последовательность, содержащую элементы из source последних count элементов исходной коллекции, пропущенных.

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)

Параметры типа

TSource

Тип элементов source.

Параметры

source
IAsyncEnumerable<TSource>

Возвращает IAsyncEnumerable<T> элементы из.

count
Int32

Количество элементов, пропущенных из конца последовательности.

Возвращаемое значение

IAsyncEnumerable<TSource>

Новая последовательность, содержащая элементы из source минус count элементов из конца последовательности.

Исключения

source равно null.

Применяется к