AsyncEnumerable.SkipLast<TSource> Methode

Definition

Gibt eine neue Sequenz zurück, die die Elemente source mit den letzten count Elementen der Quellauflistung enthält.

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)

Typparameter

TSource

Der Typ der Elemente von source.

Parameter

source
IAsyncEnumerable<TSource>

Ein IAsyncEnumerable<T> , von dem Elemente zurückgegeben werden sollen.

count
Int32

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

Gibt zurück

IAsyncEnumerable<TSource>

Eine neue Sequenz, die die Elemente aus source Minuselementen count vom Ende der Sequenz enthält.

Ausnahmen

source ist null.

Gilt für: