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

適用於

另請參閱