返回一个可查询的可观察序列,该序列在每个时间段后生成一个值。
Namespace:System.Reactive.Linq
装配: System.Reactive.Providers.dll) 中的 System.Reactive.Providers (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function Interval ( _
provider As IQbservableProvider, _
period As TimeSpan _
) As IQbservable(Of Long)
'Usage
Dim provider As IQbservableProvider
Dim period As TimeSpan
Dim returnValue As IQbservable(Of Long)
returnValue = provider.Interval(period)
public static IQbservable<long> Interval(
this IQbservableProvider provider,
TimeSpan period
)
[ExtensionAttribute]
public:
static IQbservable<long long>^ Interval(
IQbservableProvider^ provider,
TimeSpan period
)
static member Interval :
provider:IQbservableProvider *
period:TimeSpan -> IQbservable<int64>
public static function Interval(
provider : IQbservableProvider,
period : TimeSpan
) : IQbservable<long>
parameters
- provider
类型: System.Reactive.Linq.IQbservableProvider
本地 Qbservable 提供程序。
- period
类型: System.TimeSpan
生成结果序列中值的时间段。
返回值
类型: System.Reactive.Linq.IQbservable<Int64>
在每个时间段后生成值的可查询可观察序列。
使用说明
在 Visual Basic 和 C# 中,可以将此方法作为 IQbservableProvider 类型的任何对象的实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。