語言

ReportingService2010.SetModelDrillthroughReports 方法

定義

將一組鑽孔報告與模型結合起來。

public:
 void SetModelDrillthroughReports(System::String ^ Model, System::String ^ ModelItemID, cli::array <ReportService2010::ModelDrillthroughReport ^> ^ Reports);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", 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("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void SetModelDrillthroughReports(string Model, string ModelItemID, ReportService2010.ModelDrillthroughReport[] Reports);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", 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("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.SetModelDrillthroughReports : string * string * ReportService2010.ModelDrillthroughReport[] -> unit
Public Sub SetModelDrillthroughReports (Model As String, ModelItemID As String, Reports As ModelDrillthroughReport())

參數

Model
String

模型的完整 URL 包含檔名與 .smdl 檔名副檔名。

ModelItemID
String

模型中要設定鑽孔報告的模型項目的 ID。

Reports
ModelDrillthroughReport[]

ModelDrillthroughReport 物件的陣列。

屬性

備註

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

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 UpdateContent 在 和 ModelReadProperties 上,每個報告 Reports
SharePoint 模式 必要權限 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> 在 和 Model<xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> 上,每個報告 Reports

若未定義鑽孔報告,使用者將被導至動態產生的點擊報告。

鑽孔報告可以是單一實例或多實例。 你可以為模型項目設定每種類型的 。ModelDrillthroughReport 你透過將物件屬性設定TypeModelDrillthroughReport為有效的DrillthroughType枚舉子值Detail(針對單一實例或 List)來指定模型鑽孔報告的類型。

當 SetModelDrillthroughReports 呼叫時,先前模型的鑽孔報告會被所提供的鑽孔報告集取代。

若要移除特定的模型鑽孔報告,請在呼叫SetModelDrillthroughReports方法時省略該報告的條目Reports。

你可以為參數提供空值 Reports ,以移除所有模型鑽孔報告。

適用於