ObservableCepStream.Select<TInput, TOutput> 方法 (ICepObservable<TInput>, Expression<Func<TInput, TOutput>>)

 

將可觀察輸入資料流的每一個事件投射到新的事件。

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

語法

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

參數

  • source
    要投射的可觀察來源。 此參數不可以是 null。
  • selector
    投射選取器。 此參數不可以是 null。

傳回值

Type: Microsoft.ComplexEventProcessing.Linq.ICepObservable<TOutput>

投射之事件的可觀察資料流。

類型參數

  • TInput
    將可觀察輸入資料流的每一個事件投射到新的事件。
  • TOutput
    結果的類型。

請參閱

ObservableCepStream 類別
Microsoft.ComplexEventProcessing.Linq 命名空間

回到頁首