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 标头用法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
本机模式所需权限 UpdateContent中每个报表上的 Model AND ReadPropertiesReports
SharePoint 模式所需权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>中每个报表上的 Model AND <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>Reports

如果未定义钻取报表,则将用户定向到动态生成的点击式报表。

钻取报表可以是单实例或多个实例。 ,可以为模型项设置每种类型的 ModelDrillthroughReport 。 通过将 对象的 属性设置为Type单实例或 List的有效DrillthroughType枚举器值Detail来指定模型钻取报表ModelDrillthroughReport的类型。

调用 时 SetModelDrillthroughReports ,以前的模型钻取报表将替换为提供的钻取报表集。

若要删除特定模型钻取报表,请在调用 SetModelDrillthroughReports 方法时省略其条目Reports

可以为 参数提供一个空值, Reports 以删除此实体的所有模型钻取报表。

适用于