Observable.SelectMany<TSource, TCollection, TResult> 方法 (IObservable<TSource>, Func<TSource, IObservable<TCollection>>, Func<TSource, TCollection, TResult>)

命名空间:  Microsoft.Phone.Reactive
程序集:  Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TSource, TCollection, TResult) ( _
    source As IObservable(Of TSource), _
    collectionSelector As Func(Of TSource, IObservable(Of TCollection)), _
    resultSelector As Func(Of TSource, TCollection, TResult) _
) As IObservable(Of TResult)
public static IObservable<TResult> SelectMany<TSource, TCollection, TResult>(
    this IObservable<TSource> source,
    Func<TSource, IObservable<TCollection>> collectionSelector,
    Func<TSource, TCollection, TResult> resultSelector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TCollection, typename TResult>
static IObservable<TResult>^ SelectMany(
    IObservable<TSource>^ source, 
    Func<TSource, IObservable<TCollection>^>^ collectionSelector, 
    Func<TSource, TCollection, TResult>^ resultSelector
)
static member SelectMany : 
        source:IObservable<'TSource> * 
        collectionSelector:Func<'TSource, IObservable<'TCollection>> * 
        resultSelector:Func<'TSource, 'TCollection, 'TResult> -> IObservable<'TResult> 

类型参数

  • TSource
  • TCollection
  • TResult

参数

  • resultSelector
    类型:System.Func<TSource, TCollection, TResult>

返回值

类型:System.IObservable<TResult>

使用说明

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

版本信息

适用于 Windows Phone 应用的 .NET

受以下版本支持:Windows Phone 8、Silverlight 8.1

.NET Framework 安全性

请参阅

参考

Observable 类

SelectMany 重载

Microsoft.Phone.Reactive 命名空间