Método SetModelDefinition
Configura a definição para um modelo especificado.
Namespace: ReportService2005
Assembly: ReportService2005 (em ReportService2005.dll)
Sintaxe
'Declaração
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("BatchHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDefinition", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function SetModelDefinition ( _
Model As String, _
Definition As Byte() _
) As Warning()
'Uso
Dim instance As ReportingService2005
Dim Model As String
Dim Definition As Byte()
Dim returnValue As Warning()
returnValue = instance.SetModelDefinition(Model, _
Definition)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("BatchHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Warning[] SetModelDefinition(
string Model,
byte[] Definition
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"BatchHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDefinition", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
array<Warning^>^ SetModelDefinition(
String^ Model,
array<unsigned char>^ Definition
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("BatchHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetModelDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member SetModelDefinition :
Model:string *
Definition:byte[] -> Warning[]
public function SetModelDefinition(
Model : String,
Definition : byte[]
) : Warning[]
Parâmetros
- Model
Tipo: System. . :: . .String
O nome completo do modelo para o qual especificar a definição de modelo.
- Definition
Tipo: array<System. . :: . .Byte> [] () [] []
Uma matriz de bytes que contém a definição do modelo XML. Os dados XML são definidos pela https://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ linguagem SMDL.
Valor de retorno
Tipo: array<ReportService2005. . :: . .Warning> [] () [] []
Uma matriz de objetos Warning que descreve todos os avisos que podem ter ocorrido durante a validação da definição do modelo.
Comentários
The table below shows header and permissions information on this operation.
SOAP Headers |
(In) BatchHeaderValue (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.