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)

public:
generic<typename TResult>
static IObservable<TResult>^ Return(
	TResult value
)

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.
Show: