ParallelEnumerable.Range(Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在指定范围内生成整数的并行序列。
public:
static System::Linq::ParallelQuery<int> ^ Range(int start, int count);
public static System.Linq.ParallelQuery<int> Range(int start, int count);
static member Range : int * int -> System.Linq.ParallelQuery<int>
Public Function Range (start As Integer, count As Integer) As ParallelQuery(Of Integer)
参数
- start
- Int32
序列中第一个整数的值。
- count
- Int32
要生成的顺序整数数。
返回
C# 或 IEnumerable(Of Int32)中的 IEnumerable
例外
count 小于 0 -or- start + count - 1 大于 Int32.MaxValue。