QStreamable.OrderBy<TPayload, TKey> Method

Orders the contents of a window based on a key.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function OrderBy(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.OrderBy(keySelector)
public static IQOrderedWindow<TPayload> OrderBy<TPayload, TKey>(
    this IQWindowSource<TPayload> source,
    Expression<Func<TPayload, TKey>> keySelector
)
[ExtensionAttribute]
public:
generic<typename TPayload, typename TKey>
static IQOrderedWindow<TPayload>^ OrderBy(
    IQWindowSource<TPayload>^ source, 
    Expression<Func<TPayload, TKey>^>^ keySelector
)
static member OrderBy : 
        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

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).

See Also

Reference

QStreamable Class

Microsoft.ComplexEventProcessing.Linq Namespace