CepStream.ThenByDescending<TPayload, TOrderKey> 方法 (CepOrderedStream<TPayload>, Expression<Func<TPayload, TOrderKey>>)

 

依另一個排序索引鍵排序已排序的資料流,如 rankSelector 所指示。

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

語法

public static CepOrderedStream<TPayload> ThenByDescending<TPayload, TOrderKey>(
    this CepOrderedStream<TPayload> source,
    Expression<Func<TPayload, TOrderKey>> rankSelector
)
public:
generic<typename TPayload, typename TOrderKey>
[ExtensionAttribute]
static CepOrderedStream<TPayload>^ ThenByDescending(
    CepOrderedStream<TPayload>^ source,
    Expression<Func<TPayload, TOrderKey>^>^ rankSelector
)
static member ThenByDescending<'TPayload, 'TOrderKey> : 
        source:CepOrderedStream<'TPayload> *
        rankSelector:Expression<Func<'TPayload, 'TOrderKey>> -> CepOrderedStream<'TPayload>
<ExtensionAttribute>
Public Shared Function ThenByDescending(Of TPayload, TOrderKey) (
    source As CepOrderedStream(Of TPayload),
    rankSelector As Expression(Of Func(Of TPayload, TOrderKey))
) As CepOrderedStream(Of TPayload)

參數

  • source
    排序所依據的資料流來源。
  • rankSelector
    其值用於互相比較事件的運算式。

傳回值

Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TPayload>

可以進一步排名的已排序資料流,例如,使用 Take()

類型參數

  • TPayload
    輸入事件的裝載類型。
  • TOrderKey
    排序索引鍵的類型。

請參閱

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

回到頁首