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> 包含输入序列中指定索引之后发生的元素。

例外

sourcenull

适用于