Click or drag to resize
SchedulingHelperGetFirstRunTime Method
Returns date and time when the very first scheduling moment occurs based on the current date and time and the scheduling pattern.

Namespace: CMS.Scheduler
Assembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 10.0.0
Syntax
C#
public static DateTime GetFirstRunTime(
	TaskInterval taskInterval,
	Nullable<DateTime> currentTime = null
)

Parameters

taskInterval
Type: CMS.SchedulerTaskInterval
Information about task repeating
currentTime (Optional)
Type: SystemNullableDateTime
Date and time to resolve against, if null DateTime.Now is used

Return Value

Type: DateTime
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen task interval is null
Remarks
See Also