ReportingService2010.FindItems 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回報表伺服器資料庫或 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 標頭使用方式 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
| 原生模式所需的許可權 | None |
| SharePoint 模式的必要許可權 | None |
參數的長度 Folder 不能超過260個字元; 否則會擲回 SOAP 例外狀況,並傳回錯誤碼 rsItemLengthExceeded。
Folder參數不可為 null 或空白,或包含下列保留字元: : ? ; @ & = + $ , \ * > < | . " 。 您可以使用正斜線字元 (/) 將資料夾的完整路徑名稱中的專案分開,但不能在資料夾名稱的結尾使用它。
在一組搜尋條件中,只能提供一個屬性名稱的實例,而且搜尋文字不區分大小寫。
報表伺服器在搜尋條件的中間不支援萬用字元。 萬用字元包括%、_、[、]、^ 和-。 如果有萬用字元,則報表伺服器會將此字元視為字面。
傳回的專案只是使用者具有 ReadProperties 原生模式許可權的專案,以及 ViewListItems SharePoint 整合模式中的許可權。
在 SharePoint 模式中,這個方法不會傳回型別的任何專案 Resource ,因為資源不會儲存在 sharepoint 模式中,也不會與報表伺服器資料庫同步處理。