ReportingService2005.CreateModel(String, String, Byte[], Property[]) Method

Definition

Creates a model in the catalog namespace.

public:
 cli::array <ReportService2005::Warning ^> ^ CreateModel(System::String ^ Model, System::String ^ Parent, cli::array <System::Byte> ^ Definition, cli::array <ReportService2005::Property ^> ^ Properties);
public ReportService2005.Warning[] CreateModel (string Model, string Parent, byte[] Definition, ReportService2005.Property[] Properties);
member this.CreateModel : string * string * byte[] * ReportService2005.Property[] -> ReportService2005.Warning[]
Public Function CreateModel (Model As String, Parent As String, Definition As Byte(), Properties As Property()) As Warning()

Parameters

Model
String

The name of the model to create.

Parent
String

Full name of the folder under which to add the new model.

Definition
Byte[]

The report model to publish. The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language

Properties
Property[]

An array of Property objects that defines model properties and their values.

Returns

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

**SOAP Headers** (In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions CreateModel

An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel is called successfully; otherwise an exception is raised.

Remarks

Model item security is turned off for the model when it is initially created.

The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.

The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

Applies to