Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the maximum value in a queryable observable sequence according to the specified comparer.
Namespace: System.Reactive.Linq
Assembly: System.Reactive.Providers (in System.Reactive.Providers.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Max(Of TSource) ( _
source As IQbservable(Of TSource), _
comparer As IComparer(Of TSource) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim comparer As IComparer(Of TSource)
Dim returnValue As IQbservable(Of TSource)
returnValue = source.Max(comparer)
public static IQbservable<TSource> Max<TSource>(
this IQbservable<TSource> source,
IComparer<TSource> comparer
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Max(
IQbservable<TSource>^ source,
IComparer<TSource>^ comparer
)
static member Max :
source:IQbservable<'TSource> *
comparer:IComparer<'TSource> -> IQbservable<'TSource>
JScript does not support generic types and methods.
Type Parameters
- TSource
The type of source.
Parameters
- source
Type: System.Reactive.Linq.IQbservable<TSource>
A queryable observable sequence to determine the maximum element of.
- comparer
Type: System.Collections.Generic.IComparer<TSource>
The comparer used to compare elements.
Return Value
Type: System.Reactive.Linq.IQbservable<TSource>
The maximum value in a queryable observable sequence according to the specified comparer.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .