AsyncEnumerable.SkipLast<TSource> Methode

Definitie

Retourneert een nieuwe reeks die de elementen bevat waaruit source de laatste count elementen van de bronverzameling zijn weggelaten.

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)

Type parameters

TSource

Het type van de elementen van source.

Parameters

source
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> om elementen van te retourneren.

count
Int32

Het aantal elementen dat moet worden weggelaten aan het einde van de reeks.

Retouren

IAsyncEnumerable<TSource>

Een nieuwe reeks die de elementen van min-elementen count van source het einde van de reeks bevat.

Uitzonderingen

source is null.

Van toepassing op