語言

AsyncEnumerable.TakeLast<TSource> 方法

定義

回傳一個包含 中source最後元素count的新序列。

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)

類型參數

TSource

元素的類型 source。

參數

source
IAsyncEnumerable<TSource>

一個用來回傳元素的序列。

count
Int32

從序列末端取的元素數量。

傳回

IAsyncEnumerable<TSource>

一個包含 中source最後元素count的新序列。

適用於