Share via


Observable.Merge<TSource> Method (IScheduler, IObservable<TSource>[])

Merges all the observable sequences into a single observable sequence.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Merge(Of TSource) ( _
    scheduler As IScheduler, _
    ParamArray sources As IObservable(Of TSource)() _
) As IObservable(Of TSource)
'Usage
Dim scheduler As IScheduler
Dim sources As IObservable(Of TSource)()
Dim returnValue As IObservable(Of TSource)

returnValue = Observable.Merge(scheduler, _
    sources)
public static IObservable<TSource> Merge<TSource>(
    IScheduler scheduler,
    params IObservable<TSource>[] sources
)
public:
generic<typename TSource>
static IObservable<TSource>^ Merge(
    IScheduler^ scheduler, 
    ... array<IObservable<TSource>^>^ sources
)
static member Merge : 
        scheduler:IScheduler * 
        sources:IObservable<'TSource>[] -> IObservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

Return Value

Type: System.IObservable<TSource>
Observable sequence that merges the elements of the observable sequences.

See Also

Reference

Observable Class

Merge Overload

System.Reactive.Linq Namespace