Observable

Observable.Return<TResult> Method (TResult, IScheduler)

Returns an observable sequence that contains a single value with a specified value and scheduler.

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

Syntax

'Declaration
Public Shared Function Return(Of TResult) ( _
    value As TResult, _
    scheduler As IScheduler _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Return(value, _
    scheduler)
public static IObservable<TResult> Return<TResult>(
    TResult value,
    IScheduler scheduler
)
public:
generic<typename TResult>
static IObservable<TResult>^ Return(
    TResult value, 
    IScheduler^ scheduler
)
static member Return : 
        value:'TResult * 
        scheduler:IScheduler -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.IObservable<TResult>
Observable sequence containing the single specified element.

See Also

Reference

Observable Class

Return Overload

System.Reactive.Linq Namespace

Observable.Return<TResult> Method (TResult)

Returns an observable sequence that contains a single element with a specified value.

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

Syntax

'Declaration
Public Shared Function Return(Of TResult) ( _
    value As TResult _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Return(value)
public static IObservable<TResult> Return<TResult>(
    TResult value
)
public:
generic<typename TResult>
static IObservable<TResult>^ Return(
    TResult value
)
static member Return : 
        value:'TResult -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

  • value
    Type: TResult
    The single element in the resulting observable sequence.

Return Value

Type: System.IObservable<TResult>
Observable sequence containing the single specified element.

See Also

Reference

Observable Class

Return Overload

System.Reactive.Linq Namespace