Share via


QStreamable.SelectMany<TSource, TBind, TResult> Method (IQWindowedStreamable<TSource>, Expression<Func<IQWindowSource<TSource>, IQWindowResult<TBind>>>, Expression<Func<Unit, TBind, 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, TBind, TResult) ( _
    source As IQWindowedStreamable(Of TSource), _
    windowResultSelector As Expression(Of Func(Of IQWindowSource(Of TSource), IQWindowResult(Of TBind))), _
    resultSelector As Expression(Of Func(Of Unit, TBind, TResult)) _
) As IQStreamable(Of TResult)
'Usage
Dim source As IQWindowedStreamable(Of TSource)
Dim windowResultSelector As Expression(Of Func(Of IQWindowSource(Of TSource), IQWindowResult(Of TBind)))
Dim resultSelector As Expression(Of Func(Of Unit, TBind, TResult))
Dim returnValue As IQStreamable(Of TResult)

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

Type Parameters

  • TSource
    The source payload type.
  • TBind
    The payload type of window results.
  • 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