CepWindowExtensionMethods.Sum<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, Nullable<UInt32>>>)
SQL Server 2008 R2
Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
public static Nullable<uint> Sum<TPayload>( this CepWindow<TPayload> window, Expression<Func<TPayload, Nullable<uint>>> input )
Type Parameters
- TPayload
Payload type of window events.
Parameters
- window
- Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>
The window that the sum is computed over.
- input
- Type: System.Linq.Expressions.Expression<Func<TPayload, Nullable<UInt32>>>
Lambda expression which defines the input value for the summation based on an input event.
Return Value
Type: System.Nullable<UInt32>A nullable value that contains the result of the summation.