ReportingService2006.SetModelDefinition(String, Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定特定模型的定義。
public:
cli::array <ReportService2006::Warning ^> ^ SetModelDefinition(System::String ^ Model, cli::array <System::Byte> ^ Definition);
public ReportService2006.Warning[] SetModelDefinition(string Model, byte[] Definition);
member this.SetModelDefinition : string * byte[] -> ReportService2006.Warning[]
Public Function SetModelDefinition (Model As String, Definition As Byte()) As Warning()
參數
- Model
- String
該模型的完整 URL 包含檔名與 .smdl 檔名副檔名。
- Definition
- Byte[]
一個包含 XML 模型定義的位元組陣列。 XML 資料由語意模型定義語言(Semantic Model Definition Language) http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 定義。
傳回
Warning[]
一組 Warning 物件陣列描述在模型定義驗證期間發生的任何警告。
備註
下表顯示此操作的標頭與權限資訊。
| SOAP 標頭 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 必要權限 | <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> |
所提供的定義取代了現有的模型定義。
提交模型的 ID 必須與現有模型相符,否則會回 rsModelIDMismatch 傳錯誤。