语言

ReportingService2005.SetModelDefinition(String, Byte[]) 方法

定义

为指定模型设定定义。

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 对象,描述在模型定义验证过程中可能出现的任何警告。

注解

下表显示了该操作的头部和权限信息。

SOAP 头部 (在) BatchHeaderValue

(出局) ServerInfoHeaderValue
所需的权限 UpdateContent

所提供的定义取代了现有的模型定义。

提交模型的模型ID必须与现有模型一致,否则 rsModelIDMismatch 会返回错误。

适用于