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 对象的数组,它定义模型的属性和属性值。

返回

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

SOAP 标头 (In) BatchHeaderValue

(Out) ServerInfoHeaderValue

所需的权限 CreateModel

如果成功调用 CreateModel,则描述在验证模型定义期间可能发生的任何警告的 对象的数组Warning;否则将引发异常。

注解

最初创建模型时,模型项安全性处于关闭状态。

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

参数的 Parent 长度不能超过 260 个字符;否则,将引发 SOAP 异常,错误代码 为 rsItemLengthExceeded

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

适用于