Export (0) Print
Expand All
Expand Minimize

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)

public static Nullable<sbyte> Sum<TPayload>(
	this CepWindow<TPayload> window,
	Expression<Func<TPayload, Nullable<sbyte>>> input

Type Parameters


The payload type of window events.


Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>
The window that the sum is computed over.
Type: System.Linq.Expressions.Expression<Func<TPayload, Nullable<SByte>>>
The lambda expression which defines the input value for the summation based on an input event.

Return Value

Type: System.Nullable<SByte>
A nullable value that contains the result of the summation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CepWindow<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936 or http://msdn.microsoft.com/en-us/library/bb383977.
© 2014 Microsoft