FindItems メソッド

レポート サーバー データベースまたは SharePoint ライブラリから、検索条件に一致するアイテムを返します。

名前空間:  ReportService2010
アセンブリ:  ReportService2010 (ReportService2010.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function FindItems ( _
    Folder As String, _
    BooleanOperator As BooleanOperatorEnum, _
    SearchOptions As Property(), _
    SearchConditions As SearchCondition() _
) As CatalogItem()
'使用
Dim instance As ReportingService2010
Dim Folder As String
Dim BooleanOperator As BooleanOperatorEnum
Dim SearchOptions As Property()
Dim SearchConditions As SearchCondition()
Dim returnValue As CatalogItem()

returnValue = instance.FindItems(Folder, _
    BooleanOperator, SearchOptions, _
    SearchConditions)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public CatalogItem[] FindItems(
    string Folder,
    BooleanOperatorEnum BooleanOperator,
    Property[] SearchOptions,
    SearchCondition[] SearchConditions
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<CatalogItem^>^ FindItems(
    String^ Folder, 
    BooleanOperatorEnum BooleanOperator, 
    array<Property^>^ SearchOptions, 
    array<SearchCondition^>^ SearchConditions
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/FindItems", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member FindItems : 
        Folder:string * 
        BooleanOperator:BooleanOperatorEnum * 
        SearchOptions:Property[] * 
        SearchConditions:SearchCondition[] -> CatalogItem[] 
public function FindItems(
    Folder : String, 
    BooleanOperator : BooleanOperatorEnum, 
    SearchOptions : Property[], 
    SearchConditions : SearchCondition[]
) : CatalogItem[]

パラメーター

  • Folder
    型: System. . :: . .String
    検索するフォルダーの完全修飾 URL です。レポート サーバー データベース全体を検索するには、ルート フォルダー (/) を指定します。
  • SearchOptions
    型: array<ReportService2010. . :: . .Property> [] () [] []
    検索オプションの名前と値を定義する Property オブジェクトの配列です。
    サポートされている検索オプションは次のとおりです。
    Resursive : すべてのサブフォルダーの再帰検索を実行する場合は True を、実行しない場合は False を指定します。

戻り値

型: array<ReportService2010. . :: . .CatalogItem> [] () [] []
指定した検索条件に対応する、レポート サーバー データベース内の CatalogItem オブジェクトの配列です。

説明

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

ネイティブ モードで必要な権限

なし

SharePoint モードで必要な権限

なし

Folder パラメーターの長さは、260 文字以下でなければなりません。これを超えると、エラー コード rsItemLengthExceeded の SOAP 例外がスローされます。

Folder パラメーターを NULL または空の文字列にすることはできません。また、予約文字 : ?; @ & = + $ , \ * > < | ." を含めることもできません。スラッシュ (/) は、フォルダーの完全なパス名内の各項目を区切るために使用することはできますが、フォルダー名の末尾には使用できません。

一連の検索条件の中で、同じプロパティ名は一度しか使用できません。また、検索テキストの大文字と小文字は区別されません。

検索条件の途中にはワイルドカード文字を使用することはできません。ワイルドカード文字には、%、_、[、]、^、および - が含まれます。ワイルドカード文字があっても、レポート サーバーはそれをワイルドカード文字としてではなくそのままの文字として扱います。

返されるアイテムは、ネイティブ モードの場合はユーザーが ReadProperties 権限を持っているアイテム、SharePoint 統合モードの場合は ViewListItems()()()() 権限を持っているアイテムだけです。

SharePoint モードの場合、SharePoint モードのレポート サーバー データベースにリソースが格納されておらず、同期もとられていないため、このメソッドは、Resource の種類のアイテムを返しません。