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[]

A byte array containing the XML model definition. The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language .

Returns

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 Headers (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
Required Permissions UpdateContent

The definition supplied replaces the existing model definition.

The model ID of the submitted model must match that of the existing model, or an rsModelIDMismatch error is returned.

Applies to