ProfileManagementContext.ExecuteSearch Sort Descending [英] 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.
关心,
-Ravi Kanth Koppala
Regards,
-Ravi Kanth Koppala
这篇关于ProfileManagementContext.ExecuteSearch Sort Descending的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!