DevForce Help Reference
ThenBy<TSource,TKey>(IEntityQuery<TSource>,Expression<Func<TSource,TKey>>,IComparer<TKey>) Method


Performs a subsequent ordering of the elements in a sequence in ascending order.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function ThenBy
    (Of TSource,TKey)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal keySelector As Expression(Of Func(Of TSource,TKey)), _
   ByVal comparer As IComparer(Of TKey) _
) As IEntityQuery(Of TSource)
'Usage
 
Dim source As IEntityQuery(Of TSource)
Dim keySelector As Expression(Of Func(Of TSource,TKey))
Dim comparer As IComparer(Of TKey)
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.ThenBy(Of TSource, TKey)(source, keySelector, comparer)

Parameters

source
keySelector
comparer

Type Parameters

TSource
TKey
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback