Click or drag to resize
Task Scheduler Managed Class Library

TaskGetRunTimes Method

Gets the times that the registered task is scheduled to run during a specified time.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public DateTime[] GetRunTimes(
	DateTime start,
	DateTime end,
	uint count = 0
)
Request Example View Source

Parameters

start
Type: SystemDateTime
The starting time for the query.
end
Type: SystemDateTime
The ending time for the query.
count (Optional)
Type: SystemUInt32
The requested number of runs. A value of 0 will return all times requested.

Return Value

Type: DateTime
The scheduled times that the task will run.
See Also