Observable.Contains<TSource> Method (IObservable<TSource>, TSource)

March 22, 2012

Determines whether an observable sequence contains a specified value by using the default comparer.

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

public static IObservable<bool> Contains<TSource>(
	this IObservable<TSource> source,
	TSource value
)

Type Parameters

TSource

Parameters

source
Type: System.IObservable<TSource>
value
Type: TSource

Return Value

Type: System.IObservable<Boolean>
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

Show: