Export (0) Print
Expand All

Observable.Return(Of 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)

'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)

Type Parameters

TResult

The type of result.

Parameters

value
Type: TResult
The single element in the resulting observable sequence.
scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to send the single element on.

Return Value

Type: System.IObservable(Of TResult)
Observable sequence containing the single specified element.
Show:
© 2015 Microsoft