語言

ReportingService2005.GenerateModel(String, String, String, Property[]) 方法

定義

在共享資料來源之上產生預設模型。

public:
 cli::array <ReportService2005::Warning ^> ^ GenerateModel(System::String ^ DataSource, System::String ^ Model, System::String ^ Parent, cli::array <ReportService2005::Property ^> ^ Properties);
public ReportService2005.Warning[] GenerateModel(string DataSource, string Model, string Parent, ReportService2005.Property[] Properties);
member this.GenerateModel : string * string * string * ReportService2005.Property[] -> ReportService2005.Warning[]
Public Function GenerateModel (DataSource As String, Model As String, Parent As String, Properties As Property()) As Warning()

參數

DataSource
String

指向伺服器上共用資料來源的路徑,從此產生模型。

Model
String

要創建的模型名稱。

Parent
String

新增新模型的資料夾全名。

Properties
Property[]

XML 定義了要在模型上設定的屬性和要設定的值。

最頂層元素是屬性(Properties)。

傳回

一組 Warning 物件,描述模型生成過程中可能發生的任何警告。 頂層元素為 Warning。

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭 (在) BatchHeaderValue

(出局) ServerInfoHeaderValue
必要權限 ReadProperties一直持續DataSourceCreateModelParent

當呼叫時,報告伺服器會在產生的模型GenerateModel上設定該IsGenerated屬性。

模型是根據共享資料來源中指定的憑證產生的。 因此,兩個不同的使用者可以從同一資料來源產生不同的模型。 請注意,當共享資料來源設定為在報告伺服器中儲存憑證時, GenerateModel 即使共享資料來源設定為冒充目前已認證的使用者,也會冒充儲存憑證的使用者。

當模型建立時,預設的模型項目安全性會套用到模型中的節點。

當模型定義產生時,儲存在模型定義中的自訂屬性會以自訂屬性的形式傳播到資料夾命名空間的模型項目上,新的自訂屬性值會覆寫現有的自訂屬性值。

適用於