语言

ReportingService2010.FindItems 方法

定义

返回报告服务器数据库或 SharePoint 库 中符合搜索条件的项目。

public:
 cli::array <ReportService2010::CatalogItem ^> ^ FindItems(System::String ^ Folder, ReportService2010::BooleanOperatorEnum BooleanOperator, cli::array <ReportService2010::Property ^> ^ SearchOptions, cli::array <ReportService2010::SearchCondition ^> ^ SearchConditions);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public ReportService2010.CatalogItem[] FindItems(string Folder, ReportService2010.BooleanOperatorEnum BooleanOperator, ReportService2010.Property[] SearchOptions, ReportService2010.SearchCondition[] SearchConditions);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.FindItems : string * ReportService2010.BooleanOperatorEnum * ReportService2010.Property[] * ReportService2010.SearchCondition[] -> ReportService2010.CatalogItem[]
Public Function FindItems (Folder As String, BooleanOperator As BooleanOperatorEnum, SearchOptions As Property(), SearchConditions As SearchCondition()) As CatalogItem()

参数

Folder
String

搜索文件夹的完全限定URL。 要搜索整个报告服务器数据库,请指定根文件夹(/)。

BooleanOperator
BooleanOperatorEnum

用于连接搜索条件的逻辑算子。 可能的值为 AND 和 OR。 默认值为 AND。

SearchOptions
Property[]

一个定义搜索选项名称和值的对象数组 Property 。

支持的搜索选项有:

Resursive: 指定True在所有子文件夹中执行递归搜索;否则, False

SearchConditions
SearchCondition[]

一个定义属性名称和值的对象数组 SearchCondition ,用于搜索。

返回

报告服务器数据库中对应指定搜索条件的对象数组 CatalogItem 。

属性

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
本地模式所需权限 None
SharePoint 模式 必要权限 None

参数长度 Folder 不得超过260个字符;否则,会抛出带有错误代码 rsItemLengthExceed的SOAP异常。

Folder参数不能为空或空,也不能包含以下保留字符: : ? ; @ & = + $ , \ * > < | . "。 你可以用斜杠字符(/)分隔文件夹完整路径名称中的项目,但不能在文件夹名称末尾使用。

在搜索条件集中只能提供一个属性名称实例,且搜索文本不区分大小写。

报告服务器不支持搜索条件中间的通配符字符。 万用字符包括 %、_、[, ]、^ 和 -。 如果存在万用卡字符,报表服务器会字面处理该字符。

返回的项目仅限于用户在原生模式下<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>和 SharePoint 集成模式下拥有ReadProperties权限的项目。

在 SharePoint 模式下,该方法不会返回任何类型的 Resource,因为资源既不存储在 SharePoint 模式下的报告服务器数据库中,也未同步。

适用于