AsyncEnumerable.Range(Int32, Int32) Méthode

Définition

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

public:
 static System::Collections::Generic::IAsyncEnumerable<int> ^ Range(int start, int count);
public static System.Collections.Generic.IAsyncEnumerable<int> Range(int start, int count);
static member Range : int * int -> System.Collections.Generic.IAsyncEnumerable<int>
Public Function Range (start As Integer, count As Integer) As IAsyncEnumerable(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

Qui IAsyncEnumerable<T> contient une plage de nombres intégraux séquentiels.

Exceptions

start + count -1 est supérieure à MaxValue.

S’applique à