Share via


QStreamable.ThenByDescending<TPayload, TKey> Method

Adds an ordering key to an ordered window definition where the key is used for descending order.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ThenByDescending(Of TPayload, TKey) ( _
    source As IQOrderedWindow(Of TPayload), _
    keySelector As Expression(Of Func(Of TPayload, TKey)) _
) As IQOrderedWindow(Of TPayload)
'Usage
Dim source As IQOrderedWindow(Of TPayload)
Dim keySelector As Expression(Of Func(Of TPayload, TKey))
Dim returnValue As IQOrderedWindow(Of TPayload)

returnValue = source.ThenByDescending(keySelector)
public static IQOrderedWindow<TPayload> ThenByDescending<TPayload, TKey>(
    this IQOrderedWindow<TPayload> source,
    Expression<Func<TPayload, TKey>> keySelector
)
[ExtensionAttribute]
public:
generic<typename TPayload, typename TKey>
static IQOrderedWindow<TPayload>^ ThenByDescending(
    IQOrderedWindow<TPayload>^ source, 
    Expression<Func<TPayload, TKey>^>^ keySelector
)
static member ThenByDescending : 
        source:IQOrderedWindow<'TPayload> * 
        keySelector:Expression<Func<'TPayload, 'TKey>> -> IQOrderedWindow<'TPayload> 
JScript does not support generic types and methods.

Type Parameters

  • TPayload
    The window payload type.
  • TKey
    The key type.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.IQOrderedWindow<TPayload>
The ordered window.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQOrderedWindow<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.111).

See Also

Reference

QStreamable Class

Microsoft.ComplexEventProcessing.Linq Namespace