ReportingService2005.CreateModel(String, String, Byte[], Property[]) Method

Definition

在目录命名空间中创建模型。Creates a model in the catalog namespace.

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()

Parameters

Model
String

要创建的模型的名称。The name of the model to create.

Parent
String

要向其中添加新模型的文件夹的完整名称。Full name of the folder under which to add the new model.

Definition
Byte[]

要发布的报表模型。The report model to publish. XML 数据由定义 http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 语义模型定义语言The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language

Properties
Property[]

Property 对象的数组,它定义模型的属性和属性值。An array of Property objects that defines model properties and their values.

Returns

Warning[]

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

**SOAP 标头**

SOAP Headers

(In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue

必需的权限

Required Permissions

CreateModel

一个对象的数组 Warning ,这些对象描述在成功调用 CreateModel 时可能发生的、在验证模型定义的过程中出现的任何警告; 否则,将引发异常。An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel is called successfully; otherwise an exception is raised.

Remarks

最初创建模型时,模型项安全处于关闭状态。Model item security is turned off for the model when it is initially created.

ModifiedBy ModifiedDate 成功调用时,将更新父文件夹的和属性 CreateModelThe ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.

参数的长度 Parent 不能超过260个字符; 否则,将引发带有错误代码 RSITEMLENGTHEXCEEDED 的 SOAP 异常。The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

Parent参数不能为 null 或为空,也不能包含以下保留字符: : ? ; @ & = + $ , \ * > < | . "The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". 您可以使用正斜杠 (/) 来分隔文件夹的完整路径名中的项,但不能在文件夹名称的末尾使用。You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

Applies to