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[]
[出]底層語意查詢中使用的查詢參數名稱。 此 out 參數僅在參考 DataSource 模型時使用。
傳回
一個 DataSetDefinition 包含從指定資料來源擷取的欄位與傳遞查詢的物件。
- 屬性
備註
下表顯示此操作的標頭與權限資訊。
| SOAP 標頭的使用 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 原生模式所需權限 | 這取決於物品類型: - DataSource: ReadProperties- Model: ReadProperties |
| SharePoint 模式 必要權限 | 在 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> 上出現 DataSource |