ParallelEnumerable.Range(Int32, Int32) 方法

定義

在指定範圍內產生一列平行的整數序列。

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<Int32> 或 Visual Basic 中的 IEnumerable(Of Int32)包含序列整數範圍。

例外狀況

count 小於 0 -或 start + count - 1 大於 Int32.MaxValue

適用於

另請參閱