vb.net - 如何对 ReportServer CatalogItems.ListChildren 项目进行排序
问题描述
我可以通过以下代码获取报表服务器上的项目列表;
Dim rs As New MyReportServer.ReportingService2010
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim catItems As CatalogItem() = rs.ListChildren("/", True)
我需要对 Name 上的结果进行排序,但无法弄清楚如何对目录项进行排序。我尝试了很多东西,包括
catItems = catItems.OrderBy(Function(p) p.Name)
但得到错误
Value of type 'IOrderedEnumerable(Of CatalogItem)' cannot be converted to 'CatalogItem()'
有没有办法做到这一点?ListChildren 调用可以按顺序排序吗?我很感激帮助。
解决方案
推荐阅读
- android - 为什么我的 Android Studio 程序中的 editText 部分没有显示在我的 AVD 中?
- nest-device-access - 无法在设备访问控制台中关联帐户
- java - Java Client Server Socket相关问题
- javascript - 如何使用 babel-loader 在 es6 文件中导入 moment.js。?
- angular - ... clr-angular.module.d.ts 中声明的符号 ClarityModule 中的错误不是从 @clr/angular 导出的
- javascript - 为什么说这个错误?:错误:[$compile:nonassign] Expression 'undefined' ... is non-assignable!AngularJS 1.5
- cakephp - 有没有办法从 json 格式在一行中制作系统日志?
- angular - 测试中的 Renderer2、RendererFactory2 失败 - TypeError:无法读取未定义的属性“createElement”
- python - 如何沿特定维度连接torch.tensors列表中的特定张量
- android - 如何在 CalendarView 中禁用垂直滚动?