ReportingService2006.CreateModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a model to a SharePoint library.
public:
ReportService2006::CatalogItem ^ CreateModel(System::String ^ Model, System::String ^ Parent, cli::array <System::Byte> ^ Definition, cli::array <ReportService2006::Property ^> ^ Properties, [Runtime::InteropServices::Out] cli::array <ReportService2006::Warning ^> ^ % Warnings);
public ReportService2006.CatalogItem CreateModel (string Model, string Parent, byte[] Definition, ReportService2006.Property[] Properties, out ReportService2006.Warning[] Warnings);
member this.CreateModel : string * string * byte[] * ReportService2006.Property[] * Warning[] -> ReportService2006.CatalogItem
Public Function CreateModel (Model As String, Parent As String, Definition As Byte(), Properties As Property(), ByRef Warnings As Warning()) As CatalogItem
Parameters
- Model
- String
The name of the new model including the file name and .smdl file name extension.
- Parent
- String
The fully qualified URL for the parent folder that will contain the new model.
- Definition
- 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 .
- Warnings
- Warning[]
[out] An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel(String, String, Byte[], Property[], Warning[]) is called successfully; otherwise an exception is raised.
Returns
A CatalogItem object for the newly created model.
Remarks
The table below shows header and permissions information on this operation.
SOAP Headers | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
Required Permissions | <xref:Microsoft.SharePoint.SPBasePermissions.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.