言語

AsyncEnumerable.Range(Int32, Int32) メソッド

定義

指定した範囲内の整数のシーケンスを生成します。

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)

パラメーター

start
Int32

シーケンス内の最初の整数の値。

count
Int32

生成する連続する整数の数。

返品

連続する整数の範囲を含む IAsyncEnumerable<T>

例外

start + count -1 は MaxValueよりも大きくなります。

適用対象