ReportingService2005.SetModelDefinition(String, Byte[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定模型的定义。
public:
cli::array <ReportService2005::Warning ^> ^ SetModelDefinition(System::String ^ Model, cli::array <System::Byte> ^ Definition);
public ReportService2005.Warning[] SetModelDefinition (string Model, byte[] Definition);
member this.SetModelDefinition : string * byte[] -> ReportService2005.Warning[]
Public Function SetModelDefinition (Model As String, Definition As Byte()) As Warning()
参数
- Model
- String
要为其设置模型定义的模型的完整名称。
- Definition
- Byte[]
一个包含 XML 模型定义的字节数组。 XML 数据由 http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 语义模型定义语言 定义。
返回
Warning[]
Warning 对象的数组,它描述可能已在验证模型定义的过程中出现的任何警告。
注解
下表显示了有关此操作的标头和权限信息。
SOAP 标头 | (In) BatchHeaderValue (Out) ServerInfoHeaderValue |
所需的权限 | UpdateContent |
提供的定义替换了现有的模型定义。
提交的模型的模型 ID 必须与现有模型的模型 ID 匹配,否则将返回错误 rsModelIDMismatch
。