Observable.SelectMany<TSource, TOther> Method (IObservable TSource>, IObservable<<TOther>)
Projektuje każdy element sekwencji do obserwowalnej sekwencji i spłaszcza wynikowe sekwencje obserwowalne w jedną obserwowaną sekwencję.
Przestrzeń nazw:System.Reactive.Linq
Zestawu: System.Reaktywny (w System.Reactive.dll)
Składnia
'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.
Parametry typu
- Tsource
Typ źródła.
- TInne
Inny typ.
Parametry
- source
Typ: System.IObservable<TSource>
Zauważalna sekwencja elementów do projektu.
- other
Typ: System.IObservable<TOther>
Obserwowana sekwencja do projekcji każdego elementu z sekwencji źródłowej.
Wartość zwracana
Typ: System.IObservable<TOther>
Obserwowana sekwencja, której elementy są wynikiem rzutowania każdego elementu źródłowego na drugą sekwencję i scalania wszystkich wynikowych sekwencji.
Uwaga dotycząca użycia
W języku Visual Basic i C#można wywołać tę metodę jako metodę wystąpienia w dowolnym obiekcie typu IObservable<TSource>. Gdy w celu wywołania tej metody jest używana składnia metody wystąpienia, należy pominąć pierwszy parametr. Aby uzyskać więcej informacji, zobacz lub .