Observable.Do(Of TSource) Method (IObservable(Of TSource), Action(Of TSource), Action)

March 22, 2012

Invokes the action for its side effects on each value in the observable sequence.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

'Declaration
<ExtensionAttribute> _
Public Shared Function Do(Of TSource) ( _
	source As IObservable(Of TSource), _
	onNext As Action(Of TSource), _
	onCompleted As Action _
) As IObservable(Of TSource)

Type Parameters

TSource

Parameters

source
Type: System.IObservable(Of TSource)
onNext
Type: System.Action(Of TSource)
onCompleted
Type: System.Action

Return Value

Type: System.IObservable(Of TSource)
Returns IObservable(Of T).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable(Of TSource). When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: