CepStream.Where<TPayload> Method (CepStream<TPayload>, Expression<Func<TPayload, Boolean>>)
Filters events from an input stream using a given filter function.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepStream<TPayload> Where<TPayload>(
this CepStream<TPayload> source,
Expression<Func<TPayload, bool>> filter
)
Type Parameters
- TPayload
Type of the input event payload.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
Source stream.
- filter
Type: System.Linq.Expressions.Expression<Func<TPayload, Boolean>>
Filter function.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
The stream of filtered events.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepStream<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).