Open this page in the API Guide

IJobService.GetJob Method (Guid, RelatedJobsIncludeKinds)

Gets a job with or without related jobs.

Namespace:  Dundas.BI.Scheduling
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
ICollection<Job> GetJob(
	Guid jobId,
	RelatedJobsIncludeKinds relatedJobsIncludeKinds
)

Parameters

jobId
Type: System.Guid
The ID of the job.
relatedJobsIncludeKinds
Type: Dundas.BI.Scheduling.RelatedJobsIncludeKinds
The include kinds of related jobs. Related jobs will only be retrieved for a non-tenant job.

Return Value

Type: ICollection<Job>
The job with or without related jobs.
Exceptions
ExceptionCondition
ArgumentExceptionjobId is Empty.
NotFoundExceptionThe specified job was not found or has been deleted.
NoPrivilegeException

The caller does not have permission to view the job.

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