Open this page in the API Guide

IJobService.SetJobIsEnabled Method

Specifies whether the job is enabled.

Namespace:  Dundas.BI.Scheduling
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
bool SetJobIsEnabled(
	Guid jobId,
	bool isEnabled
)

Parameters

jobId
Type: System.Guid
ID of the job.
isEnabled
Type: System.Boolean
If set to true the job will be enabled, otherwise, disabled.

Return Value

Type: Boolean
true if the job was successfully modified or if no change was necessary. false if the job was not immediately modified because it was running.
Exceptions
ExceptionCondition
ArgumentExceptionjobId is Empty.
NotFoundExceptionThe specified job was not found or has been deleted.
NoPrivilegeException

The caller does not have permission to save the job.

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