Share via


ReportingService2005.CreateModel Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a model in the catalog namespace.

Syntax

'Declaration
Public Function CreateModel ( _
    Model As String, _
    Parent As String, _
    Definition As Byte(), _
    Properties As Property() _
) As Warning()
public Warning[] CreateModel (
    string Model,
    string Parent,
    byte[] Definition,
    Property[] Properties
)
public:
array<Warning^>^ CreateModel (
    String^ Model, 
    String^ Parent, 
    array<unsigned char>^ Definition, 
    array<Property^>^ Properties
)
public Warning[] CreateModel (
    String Model, 
    String Parent, 
    byte[] Definition, 
    Property[] Properties
)
public function CreateModel (
    Model : String, 
    Parent : String, 
    Definition : byte[], 
    Properties : Property[]
) : Warning[]

Parameters

  • Model
    The name of the model to create
  • Parent
    Full name of the folder under which to add the new model
  • Definition
    The report model to publish.
  • Properties
    An array of Property objects that defines model properties and their values.

Return Value

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportingService2005 Class
ReportingService2005 Members
Microsoft.WSSUX.ReportingServicesWebService.RSManagementService2005 Namespace

Other Resources

Working with Model Designer
Securing Models