ReportingService2005.CreateModel(String, String, Byte[], Property[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在目錄命名空間中建立模型。
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/
傳回
- Warning[]
下表顯示標頭以及有關這項作業的權限資訊。
| **SOAP 標頭** | (In) BatchHeaderValue
(Out) ServerInfoHeaderValue |
| 必要許可權 | CreateModel |
Warning物件的陣列,描述在驗證模型定義期間,如果成功呼叫 CreateModel ,可能發生的任何警告; 否則會引發例外狀況。
備註
最初建立模型時,模型專案安全性會關閉。
ModifiedBy ModifiedDate 當成功呼叫時,會更新父資料夾的和屬性 CreateModel 。
參數的長度 Parent 不能超過260個字元; 否則會擲回 SOAP 例外狀況,並傳回錯誤碼 rsItemLengthExceeded。
Parent參數不可為 null 或空白,或包含下列保留字元: : ? ; @ & = + $ , \ * > < | . " 。 您可以使用正斜線字元 (/) 將資料夾的完整路徑名稱中的專案分開,但不能在資料夾名稱的結尾使用它。