語言

AsyncEnumerable.Skip<TSource> 方法

定義

略過序列中指定數目的專案,然後傳回其餘專案。

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。

適用於