QStreamable.Select<TSource, TResult> Method (IQStreamable<TSource>, Expression<Func<TSource, TResult>>)
Projection operator.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Select(Of TSource, TResult) ( _
source As IQStreamable(Of TSource), _
selector As Expression(Of Func(Of TSource, TResult)) _
) As IQStreamable(Of TResult)
'Usage
Dim source As IQStreamable(Of TSource)
Dim selector As Expression(Of Func(Of TSource, TResult))
Dim returnValue As IQStreamable(Of TResult)
returnValue = source.Select(selector)
public static IQStreamable<TResult> Select<TSource, TResult>(
this IQStreamable<TSource> source,
Expression<Func<TSource, TResult>> selector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TResult>
static IQStreamable<TResult>^ Select(
IQStreamable<TSource>^ source,
Expression<Func<TSource, TResult>^>^ selector
)
static member Select :
source:IQStreamable<'TSource> *
selector:Expression<Func<'TSource, 'TResult>> -> IQStreamable<'TResult>
JScript does not support generic types and methods.
Type Parameters
- TSource
The input payload type.
- TResult
The output payload type.
Parameters
- source
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TSource>
The input stream.
- selector
Type: System.Linq.Expressions.Expression<Func<TSource, TResult>>
The projection expression.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
The projected stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TSource>. 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.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).