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

Definition

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

public:
 void SetModelDrillthroughReports(System::String ^ Model, System::String ^ ModelItemID, cli::array <ReportService2005::ModelDrillthroughReport ^> ^ Reports);
public void SetModelDrillthroughReports (string Model, string ModelItemID, ReportService2005.ModelDrillthroughReport[] Reports);
member this.SetModelDrillthroughReports : string * string * ReportService2005.ModelDrillthroughReport[] -> unit
Public Sub SetModelDrillthroughReports (Model As String, ModelItemID As String, Reports As ModelDrillthroughReport())

Parameters

Model
String

模型的完整路径。The full path of the model.

ModelItemID
String

为其设置模型钻取报表的模型中的模型项的 ID。The ID of the model item in the model for which to set model drill-through reports.

Reports
ModelDrillthroughReport[]

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

Remarks

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

SOAP 标头SOAP Headers (In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions UpdateContentModel ReadProperties 中每个报表的和ReportsUpdateContent 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.

对于模型项,可以将每种类型的 ModelDrillthroughReport (单个实例或多个实例) 。For a model item, you may set one of each type of ModelDrillthroughReport (a single instance or a multiple instance). 您可以通过将对象的 type 属性设置 ModelDrillthroughReportDrillthroughType 或的有效枚举器值来指定模型钻取报表的类型 SingleInstance MultipleInstanceYou 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.

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

若要删除特定的模型钻取报表,请在调用方法时省略其条目 SetModelDrillthroughReportTo remove a specific model drill-through report, omit its entry when calling the SetModelDrillthroughReport method.

为参数提供空值将 Reports 删除此实体的所有模型钻取报表。Supplying an empty value for the Reports parameter removes all model drill-through reports for this entity.

Applies to