UserDefinedAggregate(TPayload, TUda, TAggregateOutput) 方法
呼叫使用者定義彙總 (UDA),其中 UDA 沒有採用其他運算式,將輸入事件對應至 UDA 預期的輸入。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public static TAggregateOutput UserDefinedAggregate<TPayload, TUda, TAggregateOutput>(
this CepWindow<TPayload> window,
Object configInfo
)
where TUda : CepAggregate<TPayload, TAggregateOutput>
型別參數
- TPayload
視窗事件的裝載類型。
- TUda
使用者定義彙總的輸入事件類型。
- TAggregateOutput
彙總輸出的事件類型。
參數
- window
型別:Microsoft.ComplexEventProcessing.Linq. . :: . .CepWindow< (Of < ( <'TPayload> ) > ) >
要對其套用彙總的視窗。
- 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)。