編集

次の方法で共有


AsyncEnumerable.Range(Int32, Int32) Method

Definition

Generates a sequence of integral numbers within a specified range.

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)

Parameters

start
Int32

The value of the first integer in the sequence.

count
Int32

The number of sequential integers to generate.

Returns

An IAsyncEnumerable<T> that contains a range of sequential integral numbers.

Exceptions

start + count -1 is larger than MaxValue.

Applies to