| IJobManagerServiceSetJobSchedule Method (IJob, DayOfWeek, DateTime) |
Schedule a job to start at a specific time with a specific repetition
Namespace:
SanteDB.Core.Jobs
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax IJobSchedule SetJobSchedule(
IJob job,
DayOfWeek[] daysOfWeek,
DateTime scheduleTime
)
Function SetJobSchedule (
job As IJob,
daysOfWeek As DayOfWeek(),
scheduleTime As DateTime
) As IJobSchedule
IJobSchedule^ SetJobSchedule(
IJob^ job,
array<DayOfWeek>^ daysOfWeek,
DateTime scheduleTime
)
abstract SetJobSchedule :
job : IJob *
daysOfWeek : DayOfWeek[] *
scheduleTime : DateTime -> IJobSchedule
Parameters
- job
- Type: SanteDB.Core.JobsIJob
The job to set the schedule for - daysOfWeek
- Type: SystemDayOfWeek
The days of the week that the job should start on - scheduleTime
- Type: SystemDateTime
The start date of the schedule (note: if daysOfWeek is empty then this is the only run time, otherwise the schedule starts on the Date in the date time at the Time on the date time every day of week)
Return Value
Type:
IJobScheduleThe job schedule that has been set
See Also