Share via


ReportingService2005.SetModelDefinition Method

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

Sets the definition for a specified model.

Syntax

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

Parameters

  • Model
    The full name of the model for which to set the model definition.
  • Definition
    A byte array containing the XML model definition.

Return Value

An array of Warning objects that describes any warnings that may have occurred during validation of the model definition.

Remarks

The definition supplied replaces the existing model definition.

The model ID of the submitted model must match that of the existing model, or an rsModelIDMismatch error is returned.

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