语言

ReportingService2005.CreateModel(String, String, Byte[], Property[]) 方法

定义

在目录命名空间中创建一个模型。

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

参数

Model
String

要创建的模型名称。

Parent
String

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

Definition
Byte[]

发布报告模型。 XML数据由 http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 语义模型定义语言定义

Properties
Property[]

一个定义模型属性及其值的对象数组 Property 。

返回

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

**肥皂标题** (在) BatchHeaderValue

(出局) ServerInfoHeaderValue

所需的权限

CreateModel

一组 Warning 对象描述在成功调用 CreateModel 时,在验证模型定义时可能出现的任何警告;否则将触发异常。

注解

模型物品在最初创建时关闭了安全性。

ModifiedBy当成功调用时,父文件夹的 和 ModifiedDate 属性会被更新CreateModel。

参数长度 Parent 不得超过260个字符;否则,会抛出带有错误代码 rsItemLengthExceed的SOAP异常。

Parent参数不能为空或空,也不能包含以下保留字符: : ? ; @ & = + $ , \ * > < | . "。 你可以用斜杠字符(/)分隔文件夹完整路径名称中的项目,但不能在文件夹名称末尾使用。

适用于