ISearchQueryHelper::get_QuerySorting Method

Gets the sort order for the query result set.

Syntax

HRESULT get_QuerySorting(      
    LPWSTR *ppszSorting
);

Parameters

  • ppszSorting
    [out, retval] Returns a pointer to a comma-delimited, null-terminated Unicode string representing the sort order.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Windows Search SQL supports sorting on multiple properties, in either ascending or descending order on each property (ASC/DESC). For example, the value pointed to by ppszSorting may contain the following: "System.ItemAuthors ASC, System.ItemDate DESC".

See Also

ISearchQueryHelper::put_QuerySorting