QStreamable.SelectMany<TSource, TResult> Method (IQWindowedStreamable<TSource>, Expression<Func<IQWindowSource<TSource>, IQWindowResult<TResult>>>)

Binds operator returning a stream of results given a function from window to window results.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TSource, TResult) ( _
    source As IQWindowedStreamable(Of TSource), _
    windowResultSelector As Expression(Of Func(Of IQWindowSource(Of TSource), IQWindowResult(Of TResult))) _
) As IQStreamable(Of TResult)
'Usage
Dim source As IQWindowedStreamable(Of TSource)
Dim windowResultSelector As Expression(Of Func(Of IQWindowSource(Of TSource), IQWindowResult(Of TResult)))
Dim returnValue As IQStreamable(Of TResult)

returnValue = source.SelectMany(windowResultSelector)
public static IQStreamable<TResult> SelectMany<TSource, TResult>(
    this IQWindowedStreamable<TSource> source,
    Expression<Func<IQWindowSource<TSource>, IQWindowResult<TResult>>> windowResultSelector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TResult>
static IQStreamable<TResult>^ SelectMany(
    IQWindowedStreamable<TSource>^ source, 
    Expression<Func<IQWindowSource<TSource>^, IQWindowResult<TResult>^>^>^ windowResultSelector
)
static member SelectMany : 
        source:IQWindowedStreamable<'TSource> * 
        windowResultSelector:Expression<Func<IQWindowSource<'TSource>, IQWindowResult<'TResult>>> -> IQStreamable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The source payload type.
  • TResult
    The payload type of result.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
The stream combining all window results.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQWindowedStreamable<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).

See Also

Reference

QStreamable Class

SelectMany Overload

Microsoft.ComplexEventProcessing.Linq Namespace