QStreamable.OrderByDescending<TPayload, TKey> Method
Orders the contents of a window based on a key in descending order.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function OrderByDescending(Of TPayload, TKey) ( _
source As IQWindowSource(Of TPayload), _
keySelector As Expression(Of Func(Of TPayload, TKey)) _
) As IQOrderedWindow(Of TPayload)
'Usage
Dim source As IQWindowSource(Of TPayload)
Dim keySelector As Expression(Of Func(Of TPayload, TKey))
Dim returnValue As IQOrderedWindow(Of TPayload)
returnValue = source.OrderByDescending(keySelector)
public static IQOrderedWindow<TPayload> OrderByDescending<TPayload, TKey>(
this IQWindowSource<TPayload> source,
Expression<Func<TPayload, TKey>> keySelector
)
[ExtensionAttribute]
public:
generic<typename TPayload, typename TKey>
static IQOrderedWindow<TPayload>^ OrderByDescending(
IQWindowSource<TPayload>^ source,
Expression<Func<TPayload, TKey>^>^ keySelector
)
static member OrderByDescending :
source:IQWindowSource<'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
- source
Type: Microsoft.ComplexEventProcessing.Linq.IQWindowSource<TPayload>
The window.
- keySelector
Type: System.Linq.Expressions.Expression<Func<TPayload, TKey>>
The order key selector.
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 IQWindowSource<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).