ReportingService2006.CreateModel Method (String, String, Byte[], Property[], Warning[])

 

Adds a model to a SharePoint library.

Namespace:   ReportService2006
Assembly:  ReportService2006 (in ReportService2006.dll)

public CatalogItem CreateModel(
	string Model,
	string Parent,
	byte[] Definition,
	Property[] Properties,
	out Warning[] Warnings
)

Parameters

Model
Type: System.String

The name of the new model including the file name and .smdl file name extension.

Parent
Type: System.String

The fully qualified URL for the parent folder that will contain the new model.

Definition
Type: System.Byte[]

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

Properties
Type: ReportService2006.Property[]

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

Warnings
Type: ReportService2006.Warning[]

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

Return Value

Type: ReportService2006.CatalogItem

A CatalogItem object for the newly created model.

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

AddListItems on Parent

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

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

If the .smdl file name extension is excluded from the model name, an rsFileExtensionRequired error will be returned.

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.

ReportingService2006 Class
ReportService2006 Namespace
Working with Model Designer
Securing Models

Return to top
Show: