Qbservable

Qbservable.ToObservable<TSource> Method (IQbservableProvider, IEnumerable<TSource>)

Converts an enumerable sequence to a queryable observable sequence with a specified source.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToObservable(Of TSource) ( _
    provider As IQbservableProvider, _
    source As IEnumerable(Of TSource) _
) As IQbservable(Of TSource)
'Usage
Dim provider As IQbservableProvider
Dim source As IEnumerable(Of TSource)
Dim returnValue As IQbservable(Of TSource)

returnValue = provider.ToObservable(source)
public static IQbservable<TSource> ToObservable<TSource>(
    this IQbservableProvider provider,
    IEnumerable<TSource> source
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ ToObservable(
    IQbservableProvider^ provider, 
    IEnumerable<TSource>^ source
)
static member ToObservable : 
        provider:IQbservableProvider * 
        source:IEnumerable<'TSource> -> IQbservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<TSource>
The queryable observable sequence whose elements are pulled from the given enumerable sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

ToObservable Overload

System.Reactive.Linq Namespace

Qbservable.ToObservable<TSource> Method (IQbservableProvider, IEnumerable<TSource>, IScheduler)

Converts an enumerable sequence to a queryable observable sequence with a specified source and scheduler.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToObservable(Of TSource) ( _
    provider As IQbservableProvider, _
    source As IEnumerable(Of TSource), _
    scheduler As IScheduler _
) As IQbservable(Of TSource)
'Usage
Dim provider As IQbservableProvider
Dim source As IEnumerable(Of TSource)
Dim scheduler As IScheduler
Dim returnValue As IQbservable(Of TSource)

returnValue = provider.ToObservable(source, _
    scheduler)
public static IQbservable<TSource> ToObservable<TSource>(
    this IQbservableProvider provider,
    IEnumerable<TSource> source,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ ToObservable(
    IQbservableProvider^ provider, 
    IEnumerable<TSource>^ source, 
    IScheduler^ scheduler
)
static member ToObservable : 
        provider:IQbservableProvider * 
        source:IEnumerable<'TSource> * 
        scheduler:IScheduler -> IQbservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<TSource>
The queryable observable sequence whose elements are pulled from the given enumerable sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

ToObservable Overload

System.Reactive.Linq Namespace