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

 

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

Parameters

Return Value

Type: System.Byte

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