ReportingService2006.SetModelDrillthroughReports 方法

定义

将一组钻取报表与某个模型关联。

public:
 void SetModelDrillthroughReports(System::String ^ Model, System::String ^ ModelItemID, cli::array <ReportService2006::ModelDrillthroughReport ^> ^ Reports);
public void SetModelDrillthroughReports (string Model, string ModelItemID, ReportService2006.ModelDrillthroughReport[] Reports);
member this.SetModelDrillthroughReports : string * string * ReportService2006.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
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>中每个报表上的 Model AND <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>Reports

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

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

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

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

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

适用于