Qbservable.SelectMany<TSource, TOther> メソッド (IQbservable<TSource>, IObservable<TOther>)
クエリ可能な監視可能なシーケンスの各要素をクエリ可能な監視可能なシーケンスに投影し、結果として得られるクエリ可能な監視可能なシーケンスを 1 つのクエリ可能な監視可能なシーケンスにフラット化します。
Namespace:System.Reactive.Linq
アセンブリ: System.Reactive.Providers (System.Reactive.Providers.dll)
構文
'Declaration
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TSource, TOther) ( _
source As IQbservable(Of TSource), _
other As IObservable(Of TOther) _
) As IQbservable(Of TOther)
'Usage
Dim source As IQbservable(Of TSource)
Dim other As IObservable(Of TOther)
Dim returnValue As IQbservable(Of TOther)
returnValue = source.SelectMany(other)
public static IQbservable<TOther> SelectMany<TSource, TOther>(
this IQbservable<TSource> source,
IObservable<TOther> other
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TOther>
static IQbservable<TOther>^ SelectMany(
IQbservable<TSource>^ source,
IObservable<TOther>^ other
)
static member SelectMany :
source:IQbservable<'TSource> *
other:IObservable<'TOther> -> IQbservable<'TOther>
JScript does not support generic types and methods.
型パラメーター
- TSource
ソースの種類。
- TOther
結果の型。
パラメーター
- source
型: System.Reactive.Linq.IQbservable<TSource>
プロジェクトする要素のクエリ可能な監視可能なシーケンス。
- other
種類: System.IObservable<TOther>
各要素に適用する変換関数。
戻り値
型: System.Reactive.Linq.IQbservable<TOther>
入力シーケンスの各要素で一対多変換関数を呼び出した結果の要素を持つ、クエリ可能な監視可能なシーケンス。
使用上の注意
Visual Basic および C# では、このメソッドを IQbservable<TSource> 型の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。