CepWindowExtensionMethods.Sum<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, UInt32>>)
Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static uint Sum<TPayload>(
this CepWindow<TPayload> window,
Expression<Func<TPayload, uint>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static unsigned int Sum(
CepWindow<TPayload>^ window,
Expression<Func<TPayload, unsigned int>^>^ input
)
static member Sum<'TPayload> :
window:CepWindow<'TPayload> *
input:Expression<Func<'TPayload, uint32>> -> uint32
<ExtensionAttribute>
Public Shared Function Sum(Of TPayload) (
window As CepWindow(Of TPayload),
input As Expression(Of Func(Of TPayload, UInteger))
) As UInteger
Parameters
window
Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>The window that the sum is computed over.
input
Type: System.Linq.Expressions.Expression<Func<TPayload, UInt32>>The lambda expression which defines the input value for the summation based on an input event.
Return Value
Type: System.UInt32
A value that contains the result of the summation.
Type Parameters
- TPayload
The payload type of window events.
See Also
Sum Overload
CepWindowExtensionMethods Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top