ReportingService2005.SetModelDefinition(String, Byte[]) Method

Definition

设置指定模型的定义。Sets the definition for a specified model.

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()

Parameters

Model
String

要为其设置模型定义的模型的完整名称。The full name of the model for which to set the model definition.

Definition
Byte[]

一个包含 XML 模型定义的字节数组。A byte array containing the XML model definition. XML 数据由 http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 语义模型定义语言定义。The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language .

Returns

Warning[]

Warning 对象的数组,它描述可能已在验证模型定义的过程中出现的任何警告。An array of Warning objects that describes any warnings that may have occurred during validation of the model definition.

Remarks

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头SOAP Headers (In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions UpdateContent

提供的定义将替换现有模型定义。The definition supplied replaces the existing model definition.

已提交模型的模型 ID 必须与现有模型的模型 ID 匹配,否则 rsModelIDMismatch 返回错误。The model ID of the submitted model must match that of the existing model, or an rsModelIDMismatch error is returned.

Applies to