Qbservable.Range 方法 (IQbservableProvider、Int32、Int32)

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

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

语法

'Declaration
<ExtensionAttribute> _
Public Shared Function Range ( _
    provider As IQbservableProvider, _
    start As Integer, _
    count As Integer _
) As IQbservable(Of Integer)
'Usage
Dim provider As IQbservableProvider
Dim start As Integer
Dim count As Integer
Dim returnValue As IQbservable(Of Integer)

returnValue = provider.Range(start, _
    count)
public static IQbservable<int> Range(
    this IQbservableProvider provider,
    int start,
    int count
)
[ExtensionAttribute]
public:
static IQbservable<int>^ Range(
    IQbservableProvider^ provider, 
    int start, 
    int count
)
static member Range : 
        provider:IQbservableProvider * 
        start:int * 
        count:int -> IQbservable<int> 
public static function Range(
    provider : IQbservableProvider, 
    start : int, 
    count : int
) : IQbservable<int>

参数

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

返回值

类型: System.Reactive.Linq.IQbservable<Int32>
包含一系列顺序整数的可查询可观察序列。

使用说明

在 Visual Basic 和 C# 中,可以将此方法作为 IQbservableProvider 类型的任何对象的实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅

另请参阅

参考

Qbservable 类

范围重载

System.Reactive.Linq 命名空间