AsyncEnumerable.Range(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.