AsyncEnumerable.SkipLast<TSource> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個包含 元素 source 且省略來源集合最後元素 count 的新序列。
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)
類型參數
- TSource
元素 source的類型。
參數
- source
- IAsyncEnumerable<TSource>
一個 IAsyncEnumerable<T> 回歸元素的來源。
- count
- Int32
序列末尾需省略的元素數量。
傳回
IAsyncEnumerable<TSource>
一個包含 元素 的 新 source 序列,該 count 序列末尾的元素為負。
例外狀況
source 是 null。