共用方式為


ReportingService2010.SetModelDrillthroughReports Method

Definition

Associates a set of drillthrough reports together with a model.

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())

Parameters

Model
String

The fully qualified URL of the model including the file name and .smdl file name extension.

ModelItemID
String

The ID of the model item in the model for which to set model drillthrough reports

Reports
ModelDrillthroughReport[]

An array of ModelDrillthroughReport objects.

Attributes

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions UpdateContent on Model AND ReadProperties on each report in Reports
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> on Model AND <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> on each report in Reports

If there are no drillthrough reports defined, the user will be directed to a dynamically generated clickthrough report.

Drillthrough reports can be single-instance or multiple instance. , You can set one of each type of ModelDrillthroughReport for a model item. You specify the type of the model drillthrough report by setting the Type property of the ModelDrillthroughReport object to a valid DrillthroughType enumerator value of Detail for single-instance or List.

When SetModelDrillthroughReports is called, the previous model drillthrough reports are replaced with the supplied set of drillthrough reports.

To remove a specific model drillthrough report, omit its entry from Reports when you call the SetModelDrillthroughReports method.

You can supply an empty value for the Reports parameter to remove all model drillthrough reports for this entity.

Applies to