AsyncEnumerable.TakeLast<TSource> Método

Definição

Devolve uma nova sequência que contém os últimos count elementos de source.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeLast(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, int count);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeLast<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, int count);
static member TakeLast : System.Collections.Generic.IAsyncEnumerable<'Source> * int -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeLast(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 em source.

Parâmetros

source
IAsyncEnumerable<TSource>

Uma sequência para devolver elementos de .

count
Int32

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

Devoluções

IAsyncEnumerable<TSource>

Uma nova sequência que contém os últimos count elementos de source.

Aplica-se a