Поделиться через


Метод 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-адрес папки для поиска. Чтобы вести поиск во всей базе данных сервера отчетов, укажите корневую папку (/).
  • BooleanOperator
    Тип: ReportService2010. . :: . .BooleanOperatorEnum
    Логический оператор, применяемый для соединения условий поиска. Возможные значения: AND и OR. Значение по умолчанию — AND.
  • SearchOptions
    Тип: array<ReportService2010. . :: . .Property> [] () [] []
    Массив объектов Property, который определяет имена и значения вариантов поиска.
    Ниже приведены поддерживаемые варианты поиска:
    Resursive : задайте значение True, чтобы выполнялся рекурсивный поиск во всех вложенных папках. В противном случае — значение False.

Возвращаемое значение

Тип: array<ReportService2010. . :: . .CatalogItem> [] () [] []
Массив объектов CatalogItem в базе данных сервера отчетов, которые соответствуют заданным условиям поиска.

Замечания

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

The length of the Folder parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Folder parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

Only one instance of a property name can be supplied in the set of search conditions, and the search text is case-insensitive.

The report server does not support wildcard characters in the middle of the search condition. Wildcard characters include %, _, [, ], ^, and -. If a wildcard character is present, the report server treats the character literally.

The items that are returned are only those for which a user has ReadProperties permission in native mode and ViewListItems()()()() permission in SharePoint integrated mode.

In SharePoint mode, this method does not return any item of type Resource, because resources are not stored in, nor synchronized to, the report server database in SharePoint mode.