AsyncEnumerable.SkipLast<TSource> Método

Definição

Devolve uma nova sequência que contém os elementos de source com 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 Genérico

TSource

O tipo dos elementos de source.

Parâmetros

source
IAsyncEnumerable<TSource>

E IAsyncEnumerable<T> para devolver elementos de.

count
Int32

O número de elementos a omitir no final da sequência.

Devoluções

IAsyncEnumerable<TSource>

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

Exceções

source é null.

Aplica-se a