Share via


CepStream.Select<TPayload, TResult> Method (CepStream<TPayload>, Expression<Func<TPayload, TResult>>)

Projects events from input stream using a projections expression.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

public static CepStream<TResult> Select<TPayload, TResult>(
    this CepStream<TPayload> source,
    Expression<Func<TPayload, TResult>> selector
)

Type Parameters

  • TPayload
    Payload type of the input events.
  • TResult
    Payload type of result events.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TResult>
The stream of projected input 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).

See Also

Reference

CepStream Class

Select Overload

Microsoft.ComplexEventProcessing.Linq Namespace