Click or drag to resize
SchedulingHelperGetNextTime Method (String, DateTime, DateTime)

Note: This API is now obsolete.

Returns date and time when the next scheduling moment occurs based on the current date and time and the scheduling pattern string.

Namespace: CMS.Scheduler
Assembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 9.0.0
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use GetNextTime(TaskInterval taskInterval, DateTime? lastPlannedRunTime, DateTime? currentTime) instead.")]
public static DateTime GetNextTime(
	string schedulingPattern,
	DateTime lastRunTime,
	DateTime plannedRunTime
)

Parameters

schedulingPattern
Type: SystemString
information about task repeating
lastRunTime
Type: SystemDateTime
Last run time of task
plannedRunTime
Type: SystemDateTime
Planned run time of task

Return Value

Type: DateTime
See Also