PrepareQuery 方法
傳回資料集,其中包含由資料導向訂閱之傳遞查詢所擷取的欄位。
命名空間: ReportService2006
組件: ReportService2006 (在 ReportService2006.dll 中)
語法
'宣告
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/PrepareQuery", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function PrepareQuery ( _
DataSource As DataSource, _
DataSet As DataSetDefinition, _
<OutAttribute> ByRef Changed As Boolean, _
<OutAttribute> ByRef ParameterNames As String() _
) As DataSetDefinition
'用途
Dim instance As ReportingService2006
Dim DataSource As DataSource
Dim DataSet As DataSetDefinition
Dim Changed As Boolean
Dim ParameterNames As String()
Dim returnValue As DataSetDefinition
returnValue = instance.PrepareQuery(DataSource, _
DataSet, Changed, ParameterNames)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/PrepareQuery", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public DataSetDefinition PrepareQuery(
DataSource DataSource,
DataSetDefinition DataSet,
out bool Changed,
out string[] ParameterNames
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/PrepareQuery", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
DataSetDefinition^ PrepareQuery(
DataSource^ DataSource,
DataSetDefinition^ DataSet,
[OutAttribute] bool% Changed,
[OutAttribute] array<String^>^% ParameterNames
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/PrepareQuery", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member PrepareQuery :
DataSource:DataSource *
DataSet:DataSetDefinition *
Changed:bool byref *
ParameterNames:string[] byref -> DataSetDefinition
public function PrepareQuery(
DataSource : DataSource,
DataSet : DataSetDefinition,
Changed : boolean,
ParameterNames : String[]
) : DataSetDefinition
參數
- DataSource
型別:ReportService2006. . :: . .DataSource
傳遞查詢的資料來源。這可以是共用資料來源或模型。
- DataSet
型別:ReportService2006. . :: . .DataSetDefinition
資料集,其中包含資料導向訂閱的傳遞查詢和欄位。
- Changed
型別:System. . :: . .Boolean%
[out] Boolean 值,指出傳遞給方法的資料集與方法所傳回的資料集是否不同。使用這個屬性,以判斷輸入資料集是否與輸出資料集不同。
- ParameterNames
型別:array<System. . :: . .String> [] () [] []%
[out] 基礎語意查詢中所使用的查詢參數名稱。只有在 DataSource 參考模型時,才使用這個 out 參數。
傳回值
型別:ReportService2006. . :: . .DataSetDefinition
DataSetDefinition 物件,其中包含從特定資料來源擷取的欄位和傳遞查詢。
備註
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
ViewListItems()()()() on DataSource |