Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

ReportingService2010.CancelJob Method

Cancels the execution of a job.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CancelJob", RequestNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
	ResponseNamespace := "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
	Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function CancelJob ( _
	JobID As String _
) As Boolean
Dim instance As ReportingService2010
Dim JobID As String
Dim returnValue As Boolean

returnValue = instance.CancelJob(JobID)


Type: System.String
The ID of the job that you want to cancel. You can obtain the job ID from the JobID property in a Job object.

Return Value

Type: System.Boolean
true to if the job was successfully cancelled; otherwise, false.

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions


SharePoint Mode Required Permissions


Use the ListJobs method to obtain a list of jobs that are current running on the report server.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft