Observable.Where<TSource> Method (IObservable<TSource>, Func<TSource, Int32, Boolean>)

March 22, 2012

Filters the values of an observable sequence based on a predicate by incorporating the element's index.

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

public static IObservable<TSource> Where<TSource>(
	this IObservable<TSource> source,
	Func<TSource, int, bool> predicate

Type Parameters



Type: System.IObservable<TSource>
Type: System.Func<TSource, Int32, Boolean>

Return Value

Type: System.IObservable<TSource>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<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