ReportingService2006.SetModelDefinition(String, Byte[]) Method

Definition

Sets the definition for a specified model.

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

Parameters

Model
String

The fully qualified URL for the model including the file name and .smdl file name extension.

Definition
Byte[]

A byte array that contains 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 describe any warnings that occurred during validation of the model definition.

Remarks

The table below shows header and permissions information on this operation.

SOAP Headers (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

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