IJobServiceSetJobMaintainer Method

Sets the job maintainer.

Namespace:  Dundas.BI.Scheduling
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
void SetJobMaintainer(
	Guid jobId,
	Guid? accountId
)

Parameters

jobId
Type: SystemGuid
ID of the job.
accountId
Type: SystemNullableGuid
The job maintainer account ID. If set to the job maintainer will be deleted, otherwise it will be set.
Exceptions
ExceptionCondition
ArgumentExceptionjobId is Empty.

-or-

accountId is Empty.
NotFoundException

Account not found.

-or-

The specified job was not found or has been deleted.

InvalidOperationException

An attempt was made to set the maintainer on a child job.

-or-

An attempt was made to set a maintainer belonging to one tenant on a job belonging to another tenant.

-or-

An attempt was made to set a maintainer belonging to a tenant on a job that does not belong to any tenant.

NoPrivilegeExceptionThe caller does not have permission to save the job.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also