CepStream.Select<TPayload, TResult> 方法 (CepStream<TPayload>, Expression<Func<TPayload, TResult>>)

 

使用投射運算式投射來自輸入資料流的事件。

命名空間:   Microsoft.ComplexEventProcessing.Linq
組件:  Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)

語法

public static CepStream<TResult> Select<TPayload, TResult>(
    this CepStream<TPayload> source,
    Expression<Func<TPayload, TResult>> selector
)
public:
generic<typename TPayload, typename TResult>
[ExtensionAttribute]
static CepStream<TResult>^ Select(
    CepStream<TPayload>^ source,
    Expression<Func<TPayload, TResult>^>^ selector
)
static member Select<'TPayload, 'TResult> : 
        source:CepStream<'TPayload> *
        selector:Expression<Func<'TPayload, 'TResult>> -> CepStream<'TResult>
<ExtensionAttribute>
Public Shared Function Select(Of TPayload, TResult) (
    source As CepStream(Of TPayload),
    selector As Expression(Of Func(Of TPayload, TResult))
) As CepStream(Of TResult)

參數

  • source
    輸入資料流。
  • selector
    對應函數,可定義對輸入事件的投射。

傳回值

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TResult>

投射之輸入事件的資料流。

類型參數

  • TPayload
    輸入事件裝載的類型。
  • TResult
    結果事件裝載的類型。

請參閱

Select 超載
CepStream 類別
Microsoft.ComplexEventProcessing.Linq 命名空間

回到頁首