語言

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 標題** (在) BatchHeaderValue

(出局) ServerInfoHeaderValue

必要權限

CreateModel

一組 Warning 物件陣列描述在驗證模型定義時,若成功呼叫 CreateModel 時可能出現的任何警告;否則會提出例外。

備註

模型項目在最初建立時會關閉安全性。

ModifiedBy當成功呼叫時,父資料夾的 and ModifiedDate 屬性會被更新CreateModel。

參數長度 Parent 不得超過 260 個字元;否則會拋出帶有錯誤碼 rsItemLengthExceed 的 SOAP 例外。

Parent參數不能為空或空,或包含以下保留字元: : ? ; @ & = + $ , \ * > < | . "。 你可以用斜線字元(/)來分隔資料夾完整路徑名稱中的項目,但不能用在資料夾名稱的末尾。

適用於