IJobServiceSetJobIsEnabled 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 (24.3.0.1000)
Syntax
bool SetJobIsEnabled(
	Guid jobId,
	bool isEnabled
)

Parameters

jobId
Type: SystemGuid
ID of the job.
isEnabled
Type: SystemBoolean
If set to the job will be enabled, otherwise, disabled.

Return Value

Type: Boolean
if the job was successfully modified or if no change was necessary. 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