Observable.Take(Of TSource) Method (IObservable(Of TSource), Int32, IScheduler)

March 22, 2012

Returns a specified number of contiguous values from the start of an observable sequence.

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

'Declaration
<ExtensionAttribute> _
Public Shared Function Take(Of TSource) ( _
	source As IObservable(Of TSource), _
	count As Integer, _
	scheduler As IScheduler _
) As IObservable(Of TSource)

Type Parameters

TSource

Parameters

source
Type: System.IObservable(Of TSource)
count
Type: System.Int32
scheduler
Type: Microsoft.Phone.Reactive.IScheduler

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: