Método RegenerateModel
Atualiza um modelo existente com base nas alterações no esquema da fonte de dados.
Namespace: ReportService2006
Assembly: ReportService2006 (em ReportService2006.dll)
Sintaxe
'Declaração
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/RegenerateModel", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function RegenerateModel ( _
Model As String _
) As Warning()
'Uso
Dim instance As ReportingService2006
Dim Model As String
Dim returnValue As Warning()
returnValue = instance.RegenerateModel(Model)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/RegenerateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public Warning[] RegenerateModel(
string Model
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/RegenerateModel", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<Warning^>^ RegenerateModel(
String^ Model
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/RegenerateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member RegenerateModel :
Model:string -> Warning[]
public function RegenerateModel(
Model : String
) : Warning[]
Parâmetros
- Model
Tipo: System. . :: . .String
A URL totalmente qualificada do modelo, incluindo o nome do arquivo e a extensão (.smdl).
Valor de retorno
Tipo: array<ReportService2006. . :: . .Warning> [] () [] []
Uma matriz de objetos Warning que descreve todos os avisos que podem ter ocorrido durante a geração do modelo.
Comentários
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
EditListItems()()()() |
When called, the RegenerateModel method updates the model based on additions or changes to the data source schema.
Model item names are preserved between the existing model definition and the newly generated one.
Reports that were built against the model being changed can break if fields or entities are removed or renamed.
When the model definition is updated, custom properties stored in the model definition are propagated as custom properties on the model item in the folder namespace. New custom property values will overwrite existing custom property values.