AsyncEnumerable.TakeLast<TSource> Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Retorna 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
- TSource
O tipo dos elementos em source.
Parâmetros
- source
- IAsyncEnumerable<TSource>
Uma sequência da qual retornar elementos.
- count
- Int32
O número de elementos a serem retirados do final da sequência.
Retornos
Uma nova sequência que contém os últimos count elementos de source.