CepWindowExtensionMethods.Max<TPayload, TMaxValue> Method
Computes the maximum of the values specified by the input parameter over a window of events.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static TMaxValue Max<TPayload, TMaxValue>(
this CepWindow<TPayload> window,
Expression<Func<TPayload, TMaxValue>> input
)
Type Parameters
- TPayload
Payload type of window events.
- TMaxValue
Value type that the maximum computation is operating against.
Parameters
- window
Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>
Window with the input events to which the maximum calculation is applied to.
- input
Type: System.Linq.Expressions.Expression<Func<TPayload, TMaxValue>>
Lambda expression that defines the value that the maximum is going to operate against.
Return Value
Type: TMaxValue
A value that contains the maximum.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepWindow<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).