Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 static IObservable<TResult> Return<TResult>(
	TResult value

Type Parameters


The type of result.


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

Return Value

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