Share via


Observable.SelectMany<TSource, TCollection, TResult>-Methode (IObservable<TSource>, Func<TSource, IObservable<TCollection>>, Func<TSource, TCollection, TResult>)

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

Syntax

'Declaration
<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> 

Typparameter

  • TSource
  • TCollection
  • TResult

Parameter

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

Rückgabewert

Typ: System.IObservable<TResult>

Hinweis zur Verwendung

In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ IObservable<TSource> aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter Erweiterungsmethoden (Visual Basic) und Erweiterungsmethoden (C#-Programmierhandbuch).

Versionsinformationen

.NET für Windows Phone-Apps

Unterstützt in: Windows Phone 8, Silverlight 8.1

.NET Framework-Sicherheit

Siehe auch

Referenz

Observable Klasse

SelectMany-Überladung

Microsoft.Phone.Reactive-Namespace