返回源可查询可观测序列中的值,直到另一个可查询可观测序列生成值。
Namespace:System.Reactive.Linq
装配: System.Reactive.Providers.dll) 中的 System.Reactive.Providers (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function TakeUntil(Of TSource, TOther) ( _
source As IQbservable(Of TSource), _
other As IObservable(Of TOther) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim other As IObservable(Of TOther)
Dim returnValue As IQbservable(Of TSource)
returnValue = source.TakeUntil(other)
public static IQbservable<TSource> TakeUntil<TSource, TOther>(
this IQbservable<TSource> source,
IObservable<TOther> other
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TOther>
static IQbservable<TSource>^ TakeUntil(
IQbservable<TSource>^ source,
IObservable<TOther>^ other
)
static member TakeUntil :
source:IQbservable<'TSource> *
other:IObservable<'TOther> -> IQbservable<'TSource>
JScript does not support generic types and methods.
类型参数
- TSource
源的类型。
- TOther
另一种类型。
parameters
- source
类型: System.Reactive.Linq.IQbservable<TSource>
要为其传播元素的源序列。
- 其他
类型: System.IObservable<TOther>
终止源序列元素传播的可观察序列。
返回值
类型: System.Reactive.Linq.IQbservable<TSource>
一个可查询的可观测序列,其中包含源序列的元素,一直持续到另一个序列中断进一步传播的点。
使用说明
在 Visual Basic 和 C# 中,可以将此方法作为 IQbservable<TSource> 类型的任何对象的实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。