ReportingService2010.PrepareQuery 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回包含数据驱动订阅交付查询检索到字段的数据集。
public:
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("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/PrepareQuery", 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("TrustedUserHeaderValue")]
[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);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/PrepareQuery", 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("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.PrepareQuery : ReportService2010.DataSource * ReportService2010.DataSetDefinition * bool * String[] -> ReportService2010.DataSetDefinition
Public Function PrepareQuery (DataSource As DataSource, DataSet As DataSetDefinition, ByRef Changed As Boolean, ByRef ParameterNames As String()) As DataSetDefinition
参数
- DataSource
- DataSource
交付查询的数据源。 这可以是共享数据源或模型。
- DataSet
- DataSetDefinition
包含数据驱动订阅的交付查询和字段的数据集。
- Changed
- Boolean
[出]一个 Boolean 表示传递给方法的数据集是否与方法返回的数据集不同。 利用该属性判断输入数据集是否与输出数据集不同。
- ParameterNames
- String[]
[出]底层语义查询中使用的查询参数名称。 该出参数仅在引用 DataSource 模型时使用。
返回
一个 DataSetDefinition 包含从给定数据源检索的字段和交付查询的对象。
- 属性
注解
下表显示了该操作的头部和权限信息。
| SOAP头的使用 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 本地模式所需权限 | 这取决于物品类型: - DataSource: ReadProperties- Model: ReadProperties |
| SharePoint 模式 必要权限 |
<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> 在 DataSource 上 |