语言

ReportingService2010.SetModelDrillthroughReports 方法

定义

将一套钻孔报告与模型关联起来。

public:
 void SetModelDrillthroughReports(System::String ^ Model, System::String ^ ModelItemID, cli::array <ReportService2010::ModelDrillthroughReport ^> ^ Reports);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", 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 void SetModelDrillthroughReports(string Model, string ModelItemID, ReportService2010.ModelDrillthroughReport[] Reports);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", 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.SetModelDrillthroughReports : string * string * ReportService2010.ModelDrillthroughReport[] -> unit
Public Sub SetModelDrillthroughReports (Model As String, ModelItemID As String, Reports As ModelDrillthroughReport())

参数

Model
String

模型的完整限定URL,包括文件名和.smdl文件扩展名。

ModelItemID
String

模型中用于设置钻孔报告的模型项目的ID。

Reports
ModelDrillthroughReport[]

一个 ModelDrillthroughReport 对象数组。

属性

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
本地模式所需权限 UpdateContent在ModelReadProperties每个报告中Reports
SharePoint 模式 必要权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>在Model<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>每个报告中Reports

如果没有定义钻孔报告,用户将被引导到动态生成的点击报告。

钻孔报告可以是单实例或多实例。 你可以为模型物品设置每种类型的 一个 ModelDrillthroughReport 。 你通过将对象属性设置为TypeModelDrillthroughReport单实例List的有效DrillthroughType枚举值 或 Detail 来指定模型钻孔报告的类型。

当 SetModelDrillthroughReports 调用时,之前的模型钻孔报告会被提供的钻孔报告集替换。

要移除特定的模型钻孔报告,请在调用SetModelDrillthroughReports方法时省略该条目Reports。

你可以为参数设置空值 Reports ,以移除该实体的所有模型钻孔报告。

适用于