ReportingService2006.GenerateModel 메서드

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

네임스페이스:  ReportService2006
어셈블리:  ReportService2006(ReportService2006.dll)


Public Function GenerateModel ( _
    DataSource As String, _
    Model As String, _
    Parent As String, _
    Properties As Property(), _
    <OutAttribute> ByRef Warnings As Warning() _
) As CatalogItem
‘사용 방법
Dim instance As ReportingService2006 
Dim DataSource As String 
Dim Model As String 
Dim Parent As String 
Dim Properties As Property()
Dim Warnings As Warning()
Dim returnValue As CatalogItem 

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

매개 변수

  • DataSource
    유형: System.String
    The fully qualified URL of the data source including the file name and .rsds file name extension.
  • Parent
    유형: System.String
    The fully qualified URL for the parent folder that will contain the model.
  • Properties
    유형: array<ReportService2006.Property[]
    XML that defines properties to set on the model and values to set them to.The top-level element is Properties.
  • Warnings
    유형: array<ReportService2006.Warning[]%
    [out] An array of Warning objects which describe any warnings that may have occurred during the generation of the model. The top-level element is Warning.

반환 값

유형: ReportService2006.CatalogItem
A CatalogItem object for the newly created model.


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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

AddListItems on Parent AND ViewListItems on DataSource

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

Models are generated by 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.

참고 항목


ReportingService2006 클래스

ReportService2006 네임스페이스