Bagikan melalui


Observable.Max Method (IObservable<Int32>)

Returns the maximum value in an observable sequence of Int32 values.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Max ( _
    source As IObservable(Of Integer) _
) As IObservable(Of Integer)
'Usage
Dim source As IObservable(Of Integer)
Dim returnValue As IObservable(Of Integer)

returnValue = source.Max()
public static IObservable<int> Max(
    this IObservable<int> source
)
[ExtensionAttribute]
public:
static IObservable<int>^ Max(
    IObservable<int>^ source
)
static member Max : 
        source:IObservable<int> -> IObservable<int> 
public static function Max(
    source : IObservable<int>
) : IObservable<int>

Parameters

Return Value

Type: System.IObservable<Int32>
The maximum value in an observable sequence of Int32 values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Int32>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

Max Overload

System.Reactive.Linq Namespace