Observable.Publish(Of TSource, TResult) Method (IObservable(Of TSource), Func(Of IObservable(Of TSource), IObservable(Of TResult)), TSource, IScheduler)

March 22, 2012

Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying source and starts with initialValue.

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

'Declaration
<ExtensionAttribute> _
Public Shared Function Publish(Of TSource, TResult) ( _
	source As IObservable(Of TSource), _
	selector As Func(Of IObservable(Of TSource), IObservable(Of TResult)), _
	initialValue As TSource, _
	scheduler As IScheduler _
) As IObservable(Of TResult)

Type Parameters

TSource
TResult

Parameters

source
Type: System.IObservable(Of TSource)
selector
Type: System.Func(Of IObservable(Of TSource), IObservable(Of TResult))
initialValue
Type: TSource
scheduler
Type: Microsoft.Phone.Reactive.IScheduler

Return Value

Type: System.IObservable(Of TResult)
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: