ProfileManagementContext.ExecuteSearch Sort Descending [英] ProfileManagementContext.ExecuteSearch Sort Descending

查看:59
本文介绍了ProfileManagementContext.ExecuteSearch Sort Descending的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过date_last_changed降序检索所有配置文件,但我无法正常工作!

I'd like to retrieve all profiles order by date_last_changed descending but i could not get it work!

searchOptions.SortDescending = true; //无影响

searchOptions.SortDescending = true;//no effect

searchOptions.SortProperties =" date_last_changed";

searchOptions.SortProperties = "date_last_changed";

// searchOptions.SortProperties =" [ date_last_changed] DESC英寸; //错误

//searchOptions.SortProperties = "[date_last_changed]DESC"; //error

// searchOptions.SortProperties =" date_last_changed DESC" ;; //错误

//searchOptions.SortProperties = "date_last_changed DESC"; //error

DataSet searchResults = pmContext.ExecuteSearch(" UserObject",null,searchOptions);

DataSet searchResults = pmContext.ExecuteSearch("UserObject", null, searchOptions);

 

上面的代码将以date_last_changed的升序返回all,显然是searchOptions.SortDescending = true;没有效果。

The code above will just return all in ascending order of date_last_changed, apparently searchOptions.SortDescending = true; has no effect.

请帮忙。谢谢

 

 

推荐答案

萌,

是SortProperty还是SortProperties?我在我的博客中发布了类似的排序文章。

Is it SortProperty or SortProperties? I have post similar sorting article in my blog.

http://microsoftblog.co.in/commerceserver/catalog-search-ascending-on-first-property-and-descending-on-second-property/

关心,

-Ravi Kanth Koppala

Regards,
-Ravi Kanth Koppala


这篇关于ProfileManagementContext.ExecuteSearch Sort Descending的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆