SetModelDrillthroughReports 方法
将一组钻取报表与某个模型关联。
命名空间: ReportService2005
程序集: ReportService2005(在 ReportService2005.dll 中)
语法
声明
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("BatchHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDrillthroughReports", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub SetModelDrillthroughReports ( _
Model As String, _
ModelItemID As String, _
Reports As ModelDrillthroughReport() _
)
用法
Dim instance As ReportingService2005
Dim Model As String
Dim ModelItemID As String
Dim Reports As ModelDrillthroughReport()
instance.SetModelDrillthroughReports(Model, _
ModelItemID, Reports)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("BatchHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDrillthroughReports", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void SetModelDrillthroughReports(
string Model,
string ModelItemID,
ModelDrillthroughReport[] Reports
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"BatchHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDrillthroughReports", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
void SetModelDrillthroughReports(
String^ Model,
String^ ModelItemID,
array<ModelDrillthroughReport^>^ Reports
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("BatchHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDrillthroughReports", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member SetModelDrillthroughReports :
Model:string *
ModelItemID:string *
Reports:ModelDrillthroughReport[] -> unit
public function SetModelDrillthroughReports(
Model : String,
ModelItemID : String,
Reports : ModelDrillthroughReport[]
)
参数
- Model
类型:System. . :: . .String
模型的完整路径。
- ModelItemID
类型:System. . :: . .String
为其设置模型钻取报表的模型中的模型项的 ID。
- Reports
类型:array<ReportService2005. . :: . .ModelDrillthroughReport> [] () [] []
一个 ModelDrillthroughReport 对象的数组。
注释
The table below shows header and permissions information on this operation.
SOAP Headers |
(In) BatchHeaderValue (Out) ServerInfoHeaderValue |
Required Permissions |
UpdateContent on Model AND ReadProperties on each report in Reports |
If there are no drill-through reports defined, the user will be directed to a dynamically generated click-through report.
For a model item, you may set one of each type of ModelDrillthroughReport (a single instance or a multiple instance). You may specify the type of the model drill-through report by setting the Type property of the ModelDrillthroughReport object to a valid DrillthroughType enumerator value of SingleInstance or MultipleInstance.
When SetModelDrillthroughReports is called, the previous model drill-through reports are replaced with the supplied set of drill-through reports.
To remove a specific model drill-through report, omit its entry when calling the SetModelDrillthroughReport method.
Supplying an empty value for the Reports parameter removes all model drill-through reports for this entity.