CepStream.Select<TInput, TOutput> Method (ICepEnumerable<TInput>, Expression<Func<TInput, TOutput>>)

Projects each event of an enumerable input stream into a new event.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Select(Of TInput, TOutput) ( _
    source As ICepEnumerable(Of TInput), _
    selector As Expression(Of Func(Of TInput, TOutput)) _
) As ICepEnumerable(Of TOutput)
'Usage
Dim source As ICepEnumerable(Of TInput)
Dim selector As Expression(Of Func(Of TInput, TOutput))
Dim returnValue As ICepEnumerable(Of TOutput)

returnValue = source.Select(selector)
public static ICepEnumerable<TOutput> Select<TInput, TOutput>(
    this ICepEnumerable<TInput> source,
    Expression<Func<TInput, TOutput>> selector
)
[ExtensionAttribute]
public:
generic<typename TInput, typename TOutput>
static ICepEnumerable<TOutput>^ Select(
    ICepEnumerable<TInput>^ source, 
    Expression<Func<TInput, TOutput>^>^ selector
)
static member Select : 
        source:ICepEnumerable<'TInput> * 
        selector:Expression<Func<'TInput, 'TOutput>> -> ICepEnumerable<'TOutput> 
JScript does not support generic types and methods.

Type Parameters

  • TInput
    Type of the source.
  • TOutput
    Type of the result.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.ICepEnumerable<TOutput>
The enumerable stream of projected results.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICepEnumerable<TInput>. 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.110) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.110).

See Also

Reference

CepStream Class

Select Overload

Microsoft.ComplexEventProcessing.Linq Namespace