语言

ReportingService2005.GenerateModel(String, String, String, Property[]) 方法

定义

在共享数据源之上生成默认模型。

public:
 cli::array <ReportService2005::Warning ^> ^ GenerateModel(System::String ^ DataSource, System::String ^ Model, System::String ^ Parent, cli::array <ReportService2005::Property ^> ^ Properties);
public ReportService2005.Warning[] GenerateModel(string DataSource, string Model, string Parent, ReportService2005.Property[] Properties);
member this.GenerateModel : string * string * string * ReportService2005.Property[] -> ReportService2005.Warning[]
Public Function GenerateModel (DataSource As String, Model As String, Parent As String, Properties As Property()) As Warning()

参数

DataSource
String

指向服务器上共享数据源的路径,用于生成模型。

Model
String

要创建的模型名称。

Parent
String

添加新模型的文件夹全名。

Properties
Property[]

定义模型属性和设置值的XML语言。

顶层元素是属性。

返回

一组 Warning 对象描述模型生成过程中可能出现的任何警告。 顶层元素为 Warning。

注解

下表显示了该操作的头部和权限信息。

SOAP 头部 (在) BatchHeaderValue

(出局) ServerInfoHeaderValue
所需的权限 ReadProperties一直往DataSourceCreateModel下Parent

报告服务器在调用时在生成模型GenerateModel上设置该IsGenerated属性。

模型是根据共享数据源中指定的凭证生成的。 因此,两个不同的用户可以从同一数据源生成不同的模型。 注意,当共享数据源配置为在报告服务器中存储凭证时, GenerateModel 即使共享数据源被配置为冒充当前认证用户,也会冒充存储凭证的用户。

当模型创建时,默认的模型项安全性会应用到模型中的节点上。

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

适用于