 | 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
Syntaxpublic DateTime[] GetRunTimes(
DateTime start,
DateTime end,
uint count = 0
)
Public Function GetRunTimes (
start As DateTime,
end As DateTime,
Optional count As UInteger = 0
) As DateTime()
public:
array<DateTime>^ GetRunTimes(
DateTime start,
DateTime end,
unsigned int count = 0
)
Request Example
View SourceParameters
- 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:
DateTimeThe scheduled times that the task will run.
See Also