ReportingService2010.GenerateModel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在共享資料來源之上產生預設模型。
public:
ReportService2010::CatalogItem ^ GenerateModel(System::String ^ DataSource, System::String ^ Model, System::String ^ Parent, cli::array <ReportService2010::Property ^> ^ Properties, [Runtime::InteropServices::Out] cli::array <ReportService2010::Warning ^> ^ % Warnings);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GenerateModel", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public ReportService2010.CatalogItem GenerateModel(string DataSource, string Model, string Parent, ReportService2010.Property[] Properties, out ReportService2010.Warning[] Warnings);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GenerateModel", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.GenerateModel : string * string * string * ReportService2010.Property[] * Warning[] -> ReportService2010.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 |
| 原生模式所需權限 |
ReadProperties一直持續DataSourceCreateModelParent |
| SharePoint 模式 必要權限 |
<xref:Microsoft.SharePoint.SPBasePermissions.AddListItems>一直持續Parent<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>DataSource |
當呼叫時,報告伺服器會在生成的模型上設定 GenerateModel 屬性。
模型是根據共享資料來源中指定的憑證產生的。 因此,兩個不同的使用者可以從同一資料來源產生不同的模型。 請注意,當共享資料來源設定為在報告伺服器中儲存憑證時, GenerateModel 即使共享資料來源設定為冒充目前已認證的使用者,也會冒充儲存憑證的使用者。
當模型建立時,預設的模型項目安全性會套用到模型中的節點。
當模型定義產生時,儲存在模型定義中的自訂屬性會以自訂屬性的形式傳播到資料夾命名空間的模型項目上,新的自訂屬性值會覆寫現有的自訂屬性值。