Поделиться через


Метод RegenerateModel

Обновляет существующую модель на основе изменений схемы источника данных.

Пространство имен:  ReportService2006
Сборка:  ReportService2006 (в ReportService2006.dll)

Синтаксис

'Декларация
<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()
'Применение
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[]

Параметры

  • Model
    Тип: System. . :: . .String
    Полный URL-адрес модели, включая имя файла и расширение (SMDL).

Возвращаемое значение

Тип: array<ReportService2006. . :: . .Warning> [] () [] []
Массив объектов Warning, которые описывают все предупреждения, которые могут случиться при создании модели.

Замечания

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(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.