UserDefinedAggregateWithMapping(TPayload, TUda, TAggregateInput, TAggregateOutput) 方法
呼叫使用者定義的彙總。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public static TAggregateOutput UserDefinedAggregateWithMapping<TPayload, TUda, TAggregateInput, TAggregateOutput>(
this CepWindow<TPayload> window,
Expression<Func<TPayload, TAggregateInput>> aggregateInputExpr,
Object configInfo
)
where TUda : CepAggregate<TAggregateInput, TAggregateOutput>
型別參數
- TPayload
視窗事件的裝載類型。
- TUda
使用者定義彙總的輸入事件類型。
- TAggregateInput
彙總的輸入類型。
- TAggregateOutput
彙總輸出的事件類型。
參數
- window
型別:Microsoft.ComplexEventProcessing.Linq. . :: . .CepWindow< (Of < ( <'TPayload> ) > ) >
要對其套用彙總的視窗。
- aggregateInputExpr
型別:System.Linq.Expressions. . :: . .Expression< (Of < ( <'Func< (Of < ( <'TPayload, TAggregateInput> ) > ) >> ) > ) >
將輸入事件類型轉換為彙總輸入事件類型的運算式。
- configInfo
型別:System. . :: . .Object
彙總的初始化資訊。
傳回值
型別:TAggregateOutput
使用者定義彙總的輸出。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 CepWindow< (Of < ( <'TPayload> ) > ) > 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.105) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.105)。