AsyncEnumerable.Skip<TSource> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
略過序列中指定數目的專案,然後傳回其餘專案。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Skip(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, int count);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Skip<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, int count);
static member Skip : System.Collections.Generic.IAsyncEnumerable<'Source> * int -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Skip(Of TSource) (source As IAsyncEnumerable(Of TSource), count As Integer) As IAsyncEnumerable(Of TSource)
類型參數
- TSource
來源元素的類型。
參數
- source
- IAsyncEnumerable<TSource>
一個 IAsyncEnumerable<T> 回歸元素的來源。
- count
- Int32
在返回剩餘元素前,需跳過的元素數量。
傳回
IAsyncEnumerable<TSource>
一個 IAsyncEnumerable<T> 包含輸入序列中指定索引之後的元素。
例外狀況
source 是 null。