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 物件的陣列,描述在模型產生期間可能發生過的任何警告。 最上層元素是 Warning

備註

下表顯示標頭以及有關這項作業的權限資訊。

SOAP 標頭 (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
必要權限 ReadProperties 開啟 DataSourceCreateModel 開啟 Parent

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

使用共用資料來源中指定的認證來產生模型。 因此,兩個不同的使用者可以從相同的資料來源產生不同的模型。 請注意,當共用資料來源設定為將認證儲存在報表伺服器時, GenerateModel 一律會模擬儲存其認證的使用者,即使共用資料來源已設定為模擬目前驗證的使用者。

建立模型時,預設模型專案安全性會套用至模型中的節點。

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

適用於