共用方式為


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>

參數

  • start
    類型: System.Int32
    序列中第一個整數的值。
  • count
    類型: System.Int32
    要產生的循序整數數目。

傳回值

類型:System.IObservable<Int32>
可觀察的序列,其中包含循序整數範圍。

另請參閱

參考

Observable 類別

範圍多載

System.Reactive.Linq 命名空間