Version

CreateGenericSort(CachedTypedInfo,String,Boolean,Boolean,Object) Method

Initalizes a new CurrentSort
Syntax
'Declaration
 
Public Overloads Shared Function CreateGenericSort( _
   ByVal cachedTypeInfo As CachedTypedInfo, _
   ByVal propertyName As String, _
   ByVal sortAscending As Boolean, _
   ByVal isCaseSensitiveSort As Boolean, _
   ByVal comparer As Object _
) As SortContext
public static SortContext CreateGenericSort( 
   CachedTypedInfo cachedTypeInfo,
   string propertyName,
   bool sortAscending,
   bool isCaseSensitiveSort,
   object comparer
)

Parameters

cachedTypeInfo
The type of the CurrentSort
propertyName
The name of the property that the created sort should be sorting.
sortAscending
True if the sort should sort the property in ascending order.
isCaseSensitiveSort
True if the sort should be considered case sensitive. Only used for string fields.
comparer
An IComparer

Return Value

A new CustomFilter which is also of type CurrentSort
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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