AsyncEnumerable.SkipLast<TSource> Metod

Definition

Returnerar en ny sekvens som innehåller elementen från source med de sista count elementen i källsamlingen som utelämnas.

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)

Typparametrar

TSource

Typen av element sourcei .

Parametrar

source
IAsyncEnumerable<TSource>

Ett IAsyncEnumerable<T> att returnera element från.

count
Int32

Antalet element som ska utelämnas från slutet av sekvensen.

Returer

IAsyncEnumerable<TSource>

En ny sekvens som innehåller elementen från source minuselement count från slutet av sekvensen.

Undantag

source är null.

Gäller för