ReportingService2006.SetModelDefinition 方法
Sets the definition for a specified model.
命名空间: ReportService2006
程序集: ReportService2006(在 ReportService2006.dll 中)
语法
声明
Public Function SetModelDefinition ( _
Model As String, _
Definition As Byte() _
) As Warning()
用法
Dim instance As ReportingService2006
Dim Model As String
Dim Definition As Byte()
Dim returnValue As Warning()
returnValue = instance.SetModelDefinition(Model, _
Definition)
public Warning[] SetModelDefinition(
string Model,
byte[] Definition
)
public:
array<Warning^>^ SetModelDefinition(
String^ Model,
array<unsigned char>^ Definition
)
member SetModelDefinition :
Model:string *
Definition:byte[] -> Warning[]
public function SetModelDefinition(
Model : String,
Definition : byte[]
) : Warning[]
参数
- Model
类型:System.String
The fully qualified URL for the model including the file name and .smdl file name extension.
- Definition
类型:array<System.Byte[]
A byte array that contains the XML model definition. The XML data is defined by the https://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language .
返回值
类型:array<ReportService2006.Warning[]
An array of Warning objects that describe any warnings that occurred during validation of the model definition.
注释
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
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.