AsyncEnumerable.TakeLast<TSource> Methode

Definition

Gibt eine neue Sequenz zurück, die die letzten count Elemente enthält.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)

Typparameter

TSource

Der Typ der Elemente in source.

Parameter

source
IAsyncEnumerable<TSource>

Eine Sequenz, aus der Elemente zurückgegeben werden sollen.

count
Int32

Die Anzahl der Elemente, die vom Ende der Sequenz entnommen werden sollen.

Gibt zurück

IAsyncEnumerable<TSource>

Eine neue Sequenz, die die letzten count Elemente aus sourceenthält.

Gilt für: