TaskGetRunTimes Method
Gets the times that the registered task is scheduled to run during a specified time.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public DateTime[] GetRunTimes(
DateTime start,
DateTime end,
uint count = 0
)
- start DateTime
- The starting time for the query.
- end DateTime
- The ending time for the query.
- count UInt32 (Optional)
- The requested number of runs. A value of 0 will return all times requested.
DateTimeThe scheduled times that the task will run.