ReportingService2010.PrepareQuery(DataSource, DataSetDefinition, Boolean, String[]) ReportingService2010.PrepareQuery(DataSource, DataSetDefinition, Boolean, String[]) Method


Returns a dataset that contains the fields retrieved by the delivery query for a data-driven subscription.

 ReportService2010::DataSetDefinition ^ PrepareQuery(ReportService2010::DataSource ^ DataSource, ReportService2010::DataSetDefinition ^ DataSet, [Runtime::InteropServices::Out] bool % Changed, [Runtime::InteropServices::Out] cli::array <System::String ^> ^ % ParameterNames);
[System.Web.Services.Protocols.SoapDocumentMethod("", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="", ResponseNamespace="", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.DataSetDefinition PrepareQuery (ReportService2010.DataSource DataSource, ReportService2010.DataSetDefinition DataSet, out bool Changed, out string[] ParameterNames);


DataSource DataSource

The data source for the delivery query. This can be a shared data source or a model.

DataSetDefinition DataSetDefinition

The dataset that contains the delivery query and fields for a data-driven subscription.


[out] A Boolean value that indicates whether the dataset that was passed to the method differs from the one returned by the method. Use this property to determine whether the input dataset differs from the output dataset.


[out] The names of the query parameters used in the underlying semantic query. This out parameter is only used when the DataSource references a model.


A DataSetDefinition object that contains the fields and the delivery query that are retrieved from the given data source.


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

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions Depends on the item type:

- DataSource: ReadProperties
- Model: ReadProperties
SharePoint Mode Required Permissions ViewListItems on DataSource

Applies to