QStreamable.Join<TLeft, TRight, TKey, TResult> Method
Joins events with coincident lifetimes and matching key values.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Join(Of TLeft, TRight, TKey, TResult) ( _
left As IQStreamable(Of TLeft), _
right As IQStreamable(Of TRight), _
leftKeySelector As Expression(Of Func(Of TLeft, TKey)), _
rightKeySelector As Expression(Of Func(Of TRight, TKey)), _
resultSelector As Expression(Of Func(Of TLeft, TRight, TResult)) _
) As IQStreamable(Of TResult)
'Usage
Dim left As IQStreamable(Of TLeft)
Dim right As IQStreamable(Of TRight)
Dim leftKeySelector As Expression(Of Func(Of TLeft, TKey))
Dim rightKeySelector As Expression(Of Func(Of TRight, TKey))
Dim resultSelector As Expression(Of Func(Of TLeft, TRight, TResult))
Dim returnValue As IQStreamable(Of TResult)
returnValue = left.Join(right, leftKeySelector, _
rightKeySelector, resultSelector)
public static IQStreamable<TResult> Join<TLeft, TRight, TKey, TResult>(
this IQStreamable<TLeft> left,
IQStreamable<TRight> right,
Expression<Func<TLeft, TKey>> leftKeySelector,
Expression<Func<TRight, TKey>> rightKeySelector,
Expression<Func<TLeft, TRight, TResult>> resultSelector
)
[ExtensionAttribute]
public:
generic<typename TLeft, typename TRight, typename TKey, typename TResult>
static IQStreamable<TResult>^ Join(
IQStreamable<TLeft>^ left,
IQStreamable<TRight>^ right,
Expression<Func<TLeft, TKey>^>^ leftKeySelector,
Expression<Func<TRight, TKey>^>^ rightKeySelector,
Expression<Func<TLeft, TRight, TResult>^>^ resultSelector
)
static member Join :
left:IQStreamable<'TLeft> *
right:IQStreamable<'TRight> *
leftKeySelector:Expression<Func<'TLeft, 'TKey>> *
rightKeySelector:Expression<Func<'TRight, 'TKey>> *
resultSelector:Expression<Func<'TLeft, 'TRight, 'TResult>> -> IQStreamable<'TResult>
JScript does not support generic types and methods.
Type Parameters
- TLeft
The left input stream payload type.
- TRight
The right input stream payload type.
- TKey
The join key type.
- TResult
The result payload type.
Parameters
- left
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TLeft>
The left input stream.
- right
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TRight>
The right input stream.
- leftKeySelector
Type: System.Linq.Expressions.Expression<Func<TLeft, TKey>>
The Left key selector.
- rightKeySelector
Type: System.Linq.Expressions.Expression<Func<TRight, TKey>>
The right key selector.
- resultSelector
Type: System.Linq.Expressions.Expression<Func<TLeft, TRight, TResult>>
The result projection expression.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
The join result stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQStreamable<TLeft>. 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).