Qbservable.SelectMany<TSource、TOther> 方法 (IQbservable<TSource>、IObservable<TOther>)

将可查询可观测序列的每个元素投影为可查询可观测序列,并将生成的可查询可观测序列平展为一个可查询可观测序列。

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

语法

'Declaration
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TSource, TOther) ( _
    source As IQbservable(Of TSource), _
    other As IObservable(Of TOther) _
) As IQbservable(Of TOther)
'Usage
Dim source As IQbservable(Of TSource)
Dim other As IObservable(Of TOther)
Dim returnValue As IQbservable(Of TOther)

returnValue = source.SelectMany(other)
public static IQbservable<TOther> SelectMany<TSource, TOther>(
    this IQbservable<TSource> source,
    IObservable<TOther> other
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TOther>
static IQbservable<TOther>^ SelectMany(
    IQbservable<TSource>^ source, 
    IObservable<TOther>^ other
)
static member SelectMany : 
        source:IQbservable<'TSource> * 
        other:IObservable<'TOther> -> IQbservable<'TOther> 
JScript does not support generic types and methods.

类型参数

  • TSource
    源的类型。
  • TOther
    结果的类型。

参数

返回值

类型: System.Reactive.Linq.IQbservable<TOther>
一个可查询的可观察序列,其元素是在输入序列的每个元素上调用一对多转换函数的结果。

使用说明

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

另请参阅

参考

Qbservable 类

SelectMany 重载

System.Reactive.Linq 命名空间