Table of Contents

Class DefaultJobSectionExtensions

Namespace
Skyline.DataMiner.Net.Sections
Assembly
SLNetTypes.dll

Defines extension methods on ISectionContainer.

public static class DefaultJobSectionExtensions
Inheritance
DefaultJobSectionExtensions

Examples

The following example retrieves the name of the Job with the specified Job ID.

private string GetJobNameByID(JobManagerHelper helper, Guid jobId)
{
	var jobs = helper.Jobs.Read(JobExposers.ID.Equal(jobId));
if (jobs.Count == 0)
{
	return null;
}

Job job = jobs.First();

return job.GetJobName();

}

Methods

GetJobEndTime(Job)

Gets the end time that is set in the default job section definition of the specified section container.

GetJobName(Job)

Gets the job name that is set in the default job section definition of the specified section container.

GetJobStartTime(Job)

Gets the start time that is set in the default job section definition of the specified section container.

SetJobEndTime(Job, DateTime)

Sets the job end time of the section container to the specified string.

SetJobName(Job, string)

Sets the job name of the section container to the specified string.

SetJobStartTime(Job, DateTime)

Sets the job start time of the section container to the specified string.