Select(TInput, TResult) 方法 (CepWindowStream(CepWindow(TInput)), Expression(Func(CepWindow(TInput), TResult)))
根據給定的對應運算式,將視窗資料流對應到某個資料流。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public static CepStream<TResult> Select<TInput, TResult>(
this CepWindowStream<CepWindow<TInput>> source,
Expression<Func<CepWindow<TInput>, TResult>> selector
)
型別參數
- TInput
視窗的輸入事件裝載類型。
- TResult
結果裝載類型。
參數
- source
型別:Microsoft.ComplexEventProcessing.Linq. . :: . .CepWindowStream< (Of < ( <'CepWindow< (Of < ( <'TInput> ) > ) >> ) > ) >
視窗的資料流。
- selector
型別:System.Linq.Expressions. . :: . .Expression< (Of < ( <'Func< (Of < ( <'CepWindow< (Of < ( <'TInput> ) > ) >, TResult> ) > ) >> ) > ) >
定義對應運算式。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq. . :: . .CepStream< (Of < ( <'TResult> ) > ) >
屬於所有視窗資料流之聯集的資料流。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 CepWindowStream< (Of < ( <'CepWindow< (Of < ( <'TInput> ) > ) >> ) > ) > 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.105) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.105)。