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.SchedulerAssembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 13.0.131
Syntax 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:
DateTimeExceptions Exception | Condition |
---|
ArgumentNullException | When task interval is null |
Remarks See Also