GetExecutionOptions 方法
返回单个报表的执行选项和关联设置。
命名空间: ReportService2006
程序集: ReportService2006(在 ReportService2006.dll 中)
语法
声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExecutionOptions", 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")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetExecutionOptions ( _
Report As String, _
<OutAttribute> ByRef Item As ScheduleDefinitionOrReference _
) As ExecutionSettingEnum
用法
Dim instance As ReportingService2006
Dim Report As String
Dim Item As ScheduleDefinitionOrReference
Dim returnValue As ExecutionSettingEnum
returnValue = instance.GetExecutionOptions(Report, _
Item)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExecutionOptions", 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")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public ExecutionSettingEnum GetExecutionOptions(
string Report,
out ScheduleDefinitionOrReference Item
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExecutionOptions", 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")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
ExecutionSettingEnum GetExecutionOptions(
String^ Report,
[OutAttribute] ScheduleDefinitionOrReference^% Item
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExecutionOptions", 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")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetExecutionOptions :
Report:string *
Item:ScheduleDefinitionOrReference byref -> ExecutionSettingEnum
public function GetExecutionOptions(
Report : String,
Item : ScheduleDefinitionOrReference
) : ExecutionSettingEnum
参数
- Report
类型:System. . :: . .String
报表的完全限定 URL,其中包括文件名和 .rdl 文件扩展名。
- Item
类型:ReportService2006. . :: . .ScheduleDefinitionOrReference%
[out] 一个表示计划定义或对共享计划的引用的 ScheduleDefinitionOrReference 对象。
注释
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
ViewListItems()()()() |
The GetExecutionOptions method returns either a ScheduleDefinition object or a ScheduleReference object.
If the execution options for a report do not contain schedule information, the Item parameter is a NoSchedule object.