RegenerateModel-Methode
Aktualisiert ein vorhandenes Modell auf Grundlage von Änderungen am Datenquellenschema.
Namespace: ReportService2010
Assembly: ReportService2010 (in ReportService2010.dll)
Syntax
'Declaration
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/RegenerateModel", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function RegenerateModel ( _
Model As String _
) As Warning()
'Usage
Dim instance As ReportingService2010
Dim Model As String
Dim returnValue As Warning()
returnValue = instance.RegenerateModel(Model)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/RegenerateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
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/reporting/2010/03/01/ReportServer/RegenerateModel", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
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/reporting/2010/03/01/ReportServer/RegenerateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member RegenerateModel :
Model:string -> Warning[]
public function RegenerateModel(
Model : String
) : Warning[]
Parameter
- Model
Typ: System. . :: . .String
Die vollqualifizierte URL des Modells einschließlich des Dateinamens und der Erweiterung (.smdl).
Rückgabewert
Typ: array<ReportService2010. . :: . .Warning> [] () [] []
Ein Array von Warning-Objekten, die alle Warnungen beschreiben, die möglicherweise während der Generierung des Modells ausgegeben wurden.
Hinweise
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode 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.