ReportingService2010.SetModelDrillthroughReports(String, String, ModelDrillthroughReport[]) ReportingService2010.SetModelDrillthroughReports(String, String, ModelDrillthroughReport[]) ReportingService2010.SetModelDrillthroughReports(String, String, ModelDrillthroughReport[]) Method

定义

将一组钻取报表与某个模型关联。 Associates a set of drillthrough reports together with a model.

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);
Public Sub SetModelDrillthroughReports (Model As String, ModelItemID As String, Reports As ModelDrillthroughReport())
参数
Model
String String String

模型的完全限定 URL,其中包括文件名和 .smdl 文件扩展名。 The fully qualified URL of the model including the file name and .smdl file name extension.

ModelItemID
String String String

要为其设置模型钻取报表的模型中的模型项的 ID The ID of the model item in the model for which to set model drillthrough reports

Reports
ModelDrillthroughReport[]

数组ModelDrillthroughReport对象。 An array of ModelDrillthroughReport objects.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions UpdateContentModelANDReadProperties中每个报表 ReportsUpdateContent on Model AND ReadProperties on each report in Reports
SharePoint 模式所需的权限SharePoint Mode Required Permissions ViewListItemsModelANDViewListItems中每个报表 ReportsViewListItems on Model AND ViewListItems on each report in Reports

如果不没有定义任何钻取报表,用户将定向到动态生成的点击链接型报表中。If there are no drillthrough reports defined, the user will be directed to a dynamically generated clickthrough report.

钻取报表可以是单实例或多个实例。Drillthrough reports can be single-instance or multiple instance. 你可以设置一个每种类型的ModelDrillthroughReport模型项。, You can set one of each type of ModelDrillthroughReport for a model item. 通过设置指定的一种模型钻取报表Type属性ModelDrillthroughReport到有效的对象DrillthroughType的枚举器值Detail单实例或ListYou specify the type of the model drillthrough report by setting the Type property of the ModelDrillthroughReport object to a valid DrillthroughType enumerator value of Detail for single-instance or List.

SetModelDrillthroughReports调用时,以前模型钻取报表替换提供的一组钻取报表。When SetModelDrillthroughReports is called, the previous model drillthrough reports are replaced with the supplied set of drillthrough reports.

若要删除特定模型钻取报表,请省略从其条目Reports当调用SetModelDrillthroughReports方法。To remove a specific model drillthrough report, omit its entry from Reports when you call the SetModelDrillthroughReports method.

你可以提供空值的Reports参数以删除此实体的所有模型钻取报表。You can supply an empty value for the Reports parameter to remove all model drillthrough reports for this entity.

适用于