次の方法で共有


GenerateModel メソッド

共有データ ソース上に既定のモデルを生成します。

名前空間:  ReportService2006
アセンブリ:  ReportService2006 (ReportService2006.dll)

構文

'宣言
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GenerateModel", 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)> _
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)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GenerateModel", 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)]
public CatalogItem GenerateModel(
    string DataSource,
    string Model,
    string Parent,
    Property[] Properties,
    out Warning[] Warnings
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GenerateModel", 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)]
public:
CatalogItem^ GenerateModel(
    String^ DataSource, 
    String^ Model, 
    String^ Parent, 
    array<Property^>^ Properties, 
    [OutAttribute] array<Warning^>^% Warnings
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GenerateModel", 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)>]
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
    ファイル名と .rsds ファイル名拡張子を含む、データ ソースの完全修飾 URL です。
  • Properties
    型: array<ReportService2006. . :: . .Property> [] () [] []
    モデルに設定するプロパティとその値を定義する XML です。
    最上位レベルの要素は Properties です。
  • Warnings
    型: array<ReportService2006. . :: . .Warning> [] () [] []%
    [out] モデルの生成中に発生したすべての警告を表す Warning オブジェクトの配列です。最上位レベルの要素は Warning です。

戻り値

型: ReportService2006. . :: . .CatalogItem
新しく作成されたモデルの CatalogItem オブジェクトです。

説明

GenerateModel が呼び出されると、レポート サーバーは生成されたモデルの IsGenerated プロパティを設定します。

モデルは、共有データ ソースで指定した資格情報を使用して生成されます。そのため、データ ソースが同じでも、そこから生成したモデルはユーザーごとに異なる可能性があります。共有データ ソースがレポート サーバーに資格情報を保存するように構成されている場合は、その共有データ ソースが現在認証されているユーザーの権限を借用するように構成されていたとしても、GenerateModel は常に、資格情報が保存されているユーザーの権限を借用します。

モデルを作成するときには、モデル アイテムの既定のセキュリティがモデル内のノードに適用されます。

モデル定義を生成すると、モデル定義に格納されているカスタム プロパティが、フォルダーの名前空間のモデル アイテムのカスタム プロパティとして反映され、既存のカスタム プロパティの値が新しいカスタム プロパティの値で上書きされます。