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。