ParallelEnumerable.Skip<TSource>(ParallelQuery<TSource>, Int32) 方法

定义

跳过并行序列中指定数量的元素,然后返回剩余的元素。Bypasses a specified number of elements in a parallel sequence and then returns the remaining elements.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Skip(System::Linq::ParallelQuery<TSource> ^ source, int count);
public static System.Linq.ParallelQuery<TSource> Skip<TSource> (this System.Linq.ParallelQuery<TSource> source, int count);
static member Skip : System.Linq.ParallelQuery<'Source> * int -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Skip(Of TSource) (source As ParallelQuery(Of TSource), count As Integer) As ParallelQuery(Of TSource)

类型参数

TSource

source 的元素类型。The type of elements of source.

参数

source
ParallelQuery<TSource>

要从其返回元素的序列。The sequence to return elements from.

count
Int32

返回剩余元素前要跳过的元素数量。The number of elements to skip before returning the remaining elements.

返回

一个序列,其中包含输入序列中的指定索引后出现的元素。A sequence that contains the elements that occur after the specified index in the input sequence.

异常

source 为 null 引用(在 Visual Basic 中为 Nothing)。source is a null reference (Nothing in Visual Basic).

已使用通过 WithCancellation 传递的令牌取消了查询。The query was canceled with the token passed in through WithCancellation.

计数比 MaxValueCount is greater than MaxValue

评估查询期间发生一个或多个异常。One or more exceptions occurred during the evaluation of the query.

注解

如果 count > 源。Count (),不返回任何元素。If count > source.Count(), no elements are returned.

适用于

另请参阅