TaskGetRunTimes Method

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

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public DateTime[] GetRunTimes(
	DateTime start,
	DateTime end,
	uint count = 0
)

Parameters

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.

Return Value

DateTime
The scheduled times that the task will run.

See Also