忽略可查询的可观测序列中的值,这些序列后跟指定源和 dueTime 之前的另一个值。
Namespace:System.Reactive.Linq
装配: system.Reactive.Providers 在 System.Reactive.Providers.dll) 中 (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function Throttle(Of TSource) ( _
source As IQbservable(Of TSource), _
dueTime As TimeSpan _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim dueTime As TimeSpan
Dim returnValue As IQbservable(Of TSource)
returnValue = source.Throttle(dueTime)
public static IQbservable<TSource> Throttle<TSource>(
this IQbservable<TSource> source,
TimeSpan dueTime
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Throttle(
IQbservable<TSource>^ source,
TimeSpan dueTime
)
static member Throttle :
source:IQbservable<'TSource> *
dueTime:TimeSpan -> IQbservable<'TSource>
JScript does not support generic types and methods.
类型参数
- TSource
源的类型。
参数
- source
类型: System.Reactive.Linq.IQbservable<TSource>
要限制的源序列。
- dueTime
类型: System.TimeSpan
每个值的限制期限的持续时间。
返回值
类型: System.Reactive.Linq.IQbservable<TSource>
可查询可观测序列中的值,这些值在到期前后跟另一个值。
使用说明
在 Visual Basic 和 C# 中,可以在 IQbservable<TSource> 类型的任何对象上调用此方法作为实例方法。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。