Share via


ReportingService2006.GenerateModel Method

Definition

Generates a default model on top of a shared data source.

public:
 ReportService2006::CatalogItem ^ GenerateModel(System::String ^ DataSource, System::String ^ Model, System::String ^ Parent, cli::array <ReportService2006::Property ^> ^ Properties, [Runtime::InteropServices::Out] cli::array <ReportService2006::Warning ^> ^ % Warnings);
public ReportService2006.CatalogItem GenerateModel (string DataSource, string Model, string Parent, ReportService2006.Property[] Properties, out ReportService2006.Warning[] Warnings);
member this.GenerateModel : string * string * string * ReportService2006.Property[] * Warning[] -> ReportService2006.CatalogItem
Public Function GenerateModel (DataSource As String, Model As String, Parent As String, Properties As Property(), ByRef Warnings As Warning()) As CatalogItem

Parameters

DataSource
String

The fully qualified URL of the data source including the file name and .rsds file name extension.

Model
String

The name of the model to create.

Parent
String

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

Properties
Property[]

XML that defines properties to set on the model and values to set them to.

The top-level element is Properties.

Warnings
Warning[]

[out] An array of Warning objects which describe any warnings that may have occurred during the generation of the model. The top-level element is Warning.

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 AND <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> on DataSource

The report server sets the IsGenerated property on the generated model when GenerateModel is called.

Models are generated by using the credentials specified in the shared data source. As a result, two different users can generate different models from the same data source. Note that when a shared data source is configured to store credentials in the report server, GenerateModel always impersonates the user whose credentials are stored, even if the shared data source is configured to impersonate the currently authenticated user.

When the model is created, the default model item security is applied to the nodes in the model.

When the model definition is generated, custom properties stored in the model definition are propagated as custom properties on the model item in the folder namespace, and new custom property values overwrite existing custom property values.

Applies to