ParallelEnumerable.Range(Int32, Int32) Méthode

Définition

Génère une séquence parallèle de nombres intégraux dans une plage spécifiée.

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)

Paramètres

start
Int32

Valeur du premier entier dans la séquence.

count
Int32

Nombre d’entiers séquentiels à générer.

Retours

IEnumerable<Int32> en C# ou IEnumerable(Of Int32) dans Visual Basic qui contient une plage de nombres intégraux séquentiels.

Exceptions

count est inférieur à 0 -ou- start + count - 1 est supérieur à Int32.MaxValue.

S’applique à

Voir aussi