将可观测序列的每个元素投影到可观测序列中,并将生成的可观测序列平展为一个可观测序列。
              Namespace:System.Reactive.Linq
              装配: System.Reactive.dll) 中的 System.Reactive (
语法
'Declaration
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TSource, TOther) ( _
    source As IObservable(Of TSource), _
    other As IObservable(Of TOther) _
) As IObservable(Of TOther)
'Usage
Dim source As IObservable(Of TSource)
Dim other As IObservable(Of TOther)
Dim returnValue As IObservable(Of TOther)
returnValue = source.SelectMany(other)
public static IObservable<TOther> SelectMany<TSource, TOther>(
    this IObservable<TSource> source,
    IObservable<TOther> other
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TOther>
static IObservable<TOther>^ SelectMany(
    IObservable<TSource>^ source, 
    IObservable<TOther>^ other
)
static member SelectMany : 
        source:IObservable<'TSource> * 
        other:IObservable<'TOther> -> IObservable<'TOther> 
JScript does not support generic types and methods.
类型参数
- TSource
源的类型。 
- TOther
另一种类型。 
参数
- source
类型: System.IObservable<TSource>
要投影的元素的可观察序列。 
- 其他
类型: System.IObservable<TOther>
用于将源序列中的每个元素投影到的可观察序列。 
返回值
类型: System.IObservable<TOther>
一个可观测序列,其元素是将每个源元素投影到另一个序列并将所有生成的序列合并在一起的结果。
使用说明
在 Visual Basic 和 C# 中,可以将此方法作为 IObservable<TSource> 类型的任何对象的实例方法调用。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅或。