CepWindowExtensionMethods.Sum<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, Nullable<SByte>>>)

 

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<sbyte> Sum<TPayload>(
    this CepWindow<TPayload> window,
    Expression<Func<TPayload, Nullable<sbyte>>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static Nullable<signed char> Sum(
    CepWindow<TPayload>^ window,
    Expression<Func<TPayload, Nullable<signed char>>^>^ input
)
static member Sum<'TPayload> : 
        window:CepWindow<'TPayload> *
        input:Expression<Func<'TPayload, Nullable<sbyte>>> -> Nullable<sbyte>
<ExtensionAttribute>
Public Shared Function Sum(Of TPayload) (
    window As CepWindow(Of TPayload),
    input As Expression(Of Func(Of TPayload, Nullable(Of SByte)))
) As Nullable(Of SByte)

Parameters

Return Value

Type: System.Nullable<SByte>

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