CepWindowExtensionMethods.Sum<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, Nullable<Decimal>>>)
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 Nullable<decimal> Sum<TPayload>(
this CepWindow<TPayload> window,
Expression<Func<TPayload, Nullable<decimal>>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static Nullable<Decimal> Sum(
CepWindow<TPayload>^ window,
Expression<Func<TPayload, Nullable<Decimal>>^>^ input
)
static member Sum<'TPayload> :
window:CepWindow<'TPayload> *
input:Expression<Func<'TPayload, Nullable<decimal>>> -> Nullable<decimal>
<ExtensionAttribute>
Public Shared Function Sum(Of TPayload) (
window As CepWindow(Of TPayload),
input As Expression(Of Func(Of TPayload, Nullable(Of Decimal)))
) As Nullable(Of Decimal)
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<Decimal>>>The lambda expression which defines the input value for the summation based on an input event.
Return Value
Type: System.Nullable<Decimal>
A nullable 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