IJobServiceCancelJob Method

Cancels a job if it is running.

Namespace:  Dundas.BI.Scheduling
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
bool CancelJob(
	Guid jobId
)

Parameters

jobId
Type: SystemGuid
The ID of the job.

Return Value

Type: Boolean
if the job is running and has been sent the signal to cancel; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionjobId is Empty.
NotFoundExceptionThe specified job was not found or has been deleted.
NoPrivilegeException

The caller does not have permission to run the job.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also