Observable.Range 方法 (Int32、Int32)

在指定范围内生成一个可观测的整数序列。

Namespace:System.Reactive.Linq
装配: System.Reactive.dll) 中的 System.Reactive (

语法

'Declaration
Public Shared Function Range ( _
    start As Integer, _
    count As Integer _
) As IObservable(Of Integer)
'Usage
Dim start As Integer
Dim count As Integer
Dim returnValue As IObservable(Of Integer)

returnValue = Observable.Range(start, count)
public static IObservable<int> Range(
    int start,
    int count
)
public:
static IObservable<int>^ Range(
    int start, 
    int count
)
static member Range : 
        start:int * 
        count:int -> IObservable<int> 
public static function Range(
    start : int, 
    count : int
) : IObservable<int>

parameters

  • start
    类型: System.Int32
    序列中第一个整数的值。
  • count
    类型: System.Int32
    要生成的顺序整数的数目。

返回值

类型: System.IObservable<Int32>
包含一系列顺序整数的可观测序列。

另请参阅

参考

可观测类

范围重载

System.Reactive.Linq 命名空间