Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Return(TResult) Method (TResult)
Collapse the table of content
Expand the table of content

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

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

Type Parameters

TResult

The type of result.

Parameters

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

Return Value

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