Observable.SelectMany<TSource, TCollection, TResult> Method (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>
Type Parameters
- TSource
- TCollection
- TResult
Parameters
- source
Type: System.IObservable<TSource>
- collectionSelector
Type: System.Func<TSource, IObservable<TCollection>>
- resultSelector
Type: System.Func<TSource, TCollection, TResult>
Return Value
Type: System.IObservable<TResult>
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.