ReportingService2006.GenerateModel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在共享資料來源之上產生預設模型。
public:
ReportService2006::CatalogItem ^ GenerateModel(System::String ^ DataSource, System::String ^ Model, System::String ^ Parent, cli::array <ReportService2006::Property ^> ^ Properties, [Runtime::InteropServices::Out] cli::array <ReportService2006::Warning ^> ^ % Warnings);
public ReportService2006.CatalogItem GenerateModel(string DataSource, string Model, string Parent, ReportService2006.Property[] Properties, out ReportService2006.Warning[] Warnings);
member this.GenerateModel : string * string * string * ReportService2006.Property[] * Warning[] -> ReportService2006.CatalogItem
Public Function GenerateModel (DataSource As String, Model As String, Parent As String, Properties As Property(), ByRef Warnings As Warning()) As CatalogItem
參數
- DataSource
- String
資料來源的完整限定網址,包括檔名與 .rsds 檔名副檔名。
- Model
- String
要創建的模型名稱。
- Parent
- String
包含該模型的父資料夾的完全限定網址。
傳回
一個 CatalogItem 新模型的物件。
備註
下表顯示此操作的標頭與權限資訊。
| SOAP 標頭 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 必要權限 |
<xref:Microsoft.SharePoint.SPBasePermissions.AddListItems>一直持續Parent<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>DataSource |
當呼叫時,報告伺服器會在生成的模型GenerateModel上設定 IsGenerated 屬性。
模型是根據共享資料來源中指定的憑證產生的。 因此,兩個不同的使用者可以從同一資料來源產生不同的模型。 請注意,當共享資料來源設定為在報告伺服器中儲存憑證時, GenerateModel 即使共享資料來源設定為冒充目前已認證的使用者,也會冒充儲存憑證的使用者。
當模型建立時,預設的模型項目安全性會套用到模型中的節點。
當模型定義產生時,儲存在模型定義中的自訂屬性會以自訂屬性的形式傳播到資料夾命名空間的模型項目上,新的自訂屬性值會覆寫現有的自訂屬性值。