QStreamable.Join<TLeft, TRight, TKey, TResult> 方法
具有一致存留期間及相符索引鍵值的聯結事件。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
'宣告
<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)
'用途
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 不支援泛型型別及方法。
型別參數
- TLeft
左方輸入資料流裝載類型。
- TRight
右方輸入資料流裝載類型。
- TKey
聯結索引鍵類型。
- TResult
結果裝載類型。
參數
- left
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TLeft>
左方輸入資料流。
- right
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TRight>
右方輸入資料流。
- leftKeySelector
型別:System.Linq.Expressions.Expression<Func<TLeft, TKey>>
左方索引鍵選取器。
- rightKeySelector
型別:System.Linq.Expressions.Expression<Func<TRight, TKey>>
右方索引鍵選取器。
- resultSelector
型別:System.Linq.Expressions.Expression<Func<TLeft, TRight, TResult>>
結果投射運算式。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
聯結結果資料流。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IQStreamable<TLeft> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.111) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.111)。