ReportingService2006.RegenerateModel(String) 方法

定义

基于对数据源架构的更改更新现有模型。

public:
 cli::array <ReportService2006::Warning ^> ^ RegenerateModel(System::String ^ Model);
public ReportService2006.Warning[] RegenerateModel (string Model);
member this.RegenerateModel : string -> ReportService2006.Warning[]
Public Function RegenerateModel (Model As String) As Warning()

参数

Model
String

模型的完全限定 URL,其中包括文件名和扩展名 (.smdl)。

返回

一个 Warning 对象的数组,该数组说明在生成模型的过程中可能出现的所有警告。

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

调用时, RegenerateModel 方法会根据对数据源架构的添加或更改来更新模型。

模型项名称在现有模型定义和新生成的模型定义之间保留。

如果删除或重命名字段或实体,针对正在更改的模型生成的报表可能会中断。

更新模型定义时,存储在模型定义中的自定义属性将作为自定义属性传播到文件夹命名空间中的模型项上。 新的自定义属性值将覆盖现有的自定义属性值。

适用于