AsyncEnumerable.SkipLast<TSource> Método

Definição

Retorna uma nova sequência que contém os elementos com source os últimos count elementos da coleção de origem omitidos.

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)

Parâmetros de tipo

TSource

O tipo dos elementos de source.

Parâmetros

source
IAsyncEnumerable<TSource>

Um IAsyncEnumerable<T> elemento do qual retornar elementos.

count
Int32

O número de elementos a serem omitidas do final da sequência.

Retornos

IAsyncEnumerable<TSource>

Uma nova sequência que contém os elementos de source menos count elementos do final da sequência.

Exceções

source é null.

Aplica-se a