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


Метод ReportingService2005.GenerateModel

Generates a default model on top of a shared data source.

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

Синтаксис

'Декларация
Public Function GenerateModel ( _
    DataSource As String, _
    Model As String, _
    Parent As String, _
    Properties As Property() _
) As Warning()
'Применение
Dim instance As ReportingService2005 
Dim DataSource As String 
Dim Model As String 
Dim Parent As String 
Dim Properties As Property()
Dim returnValue As Warning()

returnValue = instance.GenerateModel(DataSource, _
    Model, Parent, Properties)
public Warning[] GenerateModel(
    string DataSource,
    string Model,
    string Parent,
    Property[] Properties
)
public:
array<Warning^>^ GenerateModel(
    String^ DataSource, 
    String^ Model, 
    String^ Parent, 
    array<Property^>^ Properties
)
member GenerateModel : 
        DataSource:string * 
        Model:string * 
        Parent:string * 
        Properties:Property[] -> Warning[] 
public function GenerateModel(
    DataSource : String, 
    Model : String, 
    Parent : String, 
    Properties : Property[]
) : Warning[]

Параметры

  • DataSource
    Тип: System.String
    The path to a shared data source on the server from which to generate the model.
  • Parent
    Тип: System.String
    Full name of the folder under which to add the new model.
  • Properties
    Тип: array<ReportService2005.Property[]
    XML that defines properties to set on the model and values to set them to.The top-level element is Properties.

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

Тип: array<ReportService2005.Warning[]
An array of Warning objects that describe any warnings that may have occurred during the generation of the model. The top-level element is Warning.

Замечания

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

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

ReadProperties on DataSource AND CreateModel on Parent

The report server sets the IsGenerated property on the generated model when GenerateModel is called.

Models are generated using the credentials specified in the shared data source. As a result, two different users can generate different models from the same data source. Note that when a shared data source is configured to store credentials in the report server, GenerateModel always impersonates the user whose credentials are stored, even if the shared data source is configured to impersonate the currently authenticated user.

When the model is created, the default model item security is applied to the nodes in the model.

When the model definition is generated, custom properties stored in the model definition are propagated as custom properties on the model item in the folder namespace, and new custom property values overwrite existing custom property values.

См. также

Справочник

ReportingService2005 Класс

Пространство имен ReportService2005