QStreamable.LeftAntiJoin<TLeft, TRight, TKey> 方法 (IQStreamable<TLeft>, IQStreamable<TRight>, Expression<Func<TLeft, TKey>>, Expression<Func<TRight, TKey>>)
當 [左方] 事件與任何比對的 [右方] 事件 (根據索引鍵來比對事件) 不一致時,就會傳回左方事件。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function LeftAntiJoin(Of TLeft, TRight, TKey) ( _
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)) _
) As IQStreamable(Of TLeft)
'用途
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 returnValue As IQStreamable(Of TLeft)
returnValue = left.LeftAntiJoin(right, _
leftKeySelector, rightKeySelector)
public static IQStreamable<TLeft> LeftAntiJoin<TLeft, TRight, TKey>(
this IQStreamable<TLeft> left,
IQStreamable<TRight> right,
Expression<Func<TLeft, TKey>> leftKeySelector,
Expression<Func<TRight, TKey>> rightKeySelector
)
[ExtensionAttribute]
public:
generic<typename TLeft, typename TRight, typename TKey>
static IQStreamable<TLeft>^ LeftAntiJoin(
IQStreamable<TLeft>^ left,
IQStreamable<TRight>^ right,
Expression<Func<TLeft, TKey>^>^ leftKeySelector,
Expression<Func<TRight, TKey>^>^ rightKeySelector
)
static member LeftAntiJoin :
left:IQStreamable<'TLeft> *
right:IQStreamable<'TRight> *
leftKeySelector:Expression<Func<'TLeft, 'TKey>> *
rightKeySelector:Expression<Func<'TRight, 'TKey>> -> IQStreamable<'TLeft>
JScript 不支援泛型型別及方法。
型別參數
- TLeft
左方裝載類型。
- TRight
右方裝載類型。
- TKey
聯結索引鍵類型。
參數
- 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>>
右方索引鍵選取器。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TLeft>
由左方事件組成的資料流 (當與右方事件不相符時)。
使用注意事項
在 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)。