ReportingService2005.GenerateModel(String, String, String, Property[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以共用資料來源為基礎產生預設模型。
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
要在其下加入新模型之資料夾的完整名稱。
傳回
- Warning[]
Warning 物件的陣列,描述在模型產生期間可能發生過的任何警告。 最上層元素是 Warning。
備註
下表顯示標頭以及有關這項作業的權限資訊。
| SOAP 標頭 | (In) BatchHeaderValue (Out) ServerInfoHeaderValue |
| 必要權限 | ReadProperties 開啟 DataSource 和 CreateModel 開啟 Parent |
IsGenerated當呼叫時,報表伺服器會在產生的模型上設定屬性 GenerateModel 。
使用共用資料來源中指定的認證來產生模型。 因此,兩個不同的使用者可以從相同的資料來源產生不同的模型。 請注意,當共用資料來源設定為將認證儲存在報表伺服器時, GenerateModel 一律會模擬儲存其認證的使用者,即使共用資料來源已設定為模擬目前驗證的使用者。
建立模型時,預設模型專案安全性會套用至模型中的節點。
當模型定義產生時,儲存在模型定義中的自訂屬性會以自訂屬性的形式傳播至資料夾命名空間中的模型專案,而新的自訂屬性值則會覆寫現有的自訂屬性值。