ReportingService2010.DeleteSchedule(String) 方法

定义

从报表服务器数据库或 SharePoint 库删除共享计划。

public:
 void DeleteSchedule(System::String ^ ScheduleID);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSchedule", 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 DeleteSchedule (string ScheduleID);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/DeleteSchedule", 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.DeleteSchedule : string -> unit
Public Sub DeleteSchedule (ScheduleID As String)

参数

ScheduleID
String

计划的 ID,该 ID 由 CreateSchedule(String, ScheduleDefinition, String) 方法返回。

属性

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头用法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
本机模式所需权限 DeleteSchedules (系统)
SharePoint 模式所需权限 <xref:Microsoft.SharePoint.SPBasePermissions.ManageWeb>

如果计划被删除,则不会运行按计划运行的报表和订阅。

DeleteSchedule如果在与共享计划关联的报表正在运行时调用 方法,则报表将继续运行。 在这种情况下,计划将分配给单个报表。

ListSchedules使用 方法检索报表服务器数据库或 SharePoint 库中的共享计划的当前列表。

适用于