Observable.MinBy(Of TSource, TKey) Method (IObservable(Of TSource), Func(Of TSource, TKey), IComparer(Of TKey))

March 22, 2012

Returns the element in an observable sequence with the minimum key value.

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

'Declaration
<ExtensionAttribute> _
Public Shared Function MinBy(Of TSource, TKey) ( _
	source As IObservable(Of TSource), _
	keySelector As Func(Of TSource, TKey), _
	comparer As IComparer(Of TKey) _
) As IObservable(Of TSource)

Type Parameters

TSource
TKey

Parameters

source
Type: System.IObservable(Of TSource)
keySelector
Type: System.Func(Of TSource, TKey)
comparer
Type: System.Collections.Generic.IComparer(Of TKey)

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: