Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 2.06 KB

trigger-executiontimelimit.md

File metadata and controls

69 lines (40 loc) · 2.06 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
Trigger.ExecutionTimeLimit property
For scripting, gets or sets the maximum amount of time that the task launched by the trigger is allowed to run.
9993b362-f8f7-429b-a16a-1845d6f0f5e0
ExecutionTimeLimit property Task Scheduler
ExecutionTimeLimit property Task Scheduler , Trigger object
Trigger object Task Scheduler , ExecutionTimeLimit property
apiref
Trigger.ExecutionTimeLimit
taskschd.dll
COM
reference
05/31/2018

Trigger.ExecutionTimeLimit property

For scripting, gets or sets the maximum amount of time that the task launched by the trigger is allowed to run.

Syntax

Trigger.ExecutionTimeLimit As String

Property value

The maximum amount of time that the task launched by the trigger is allowed to run. The format for this string is PnYnMnDTnHnMnS, where nY is the number of years, nM is the number of months, nD is the number of days, 'T' is the date/time separator, nH is the number of hours, nM is the number of minutes, and nS is the number of seconds (for example, PT5M specifies 5 minutes and P1M4DT2H5M specifies one month, four days, two hours, and five minutes).

Remarks

When reading or writing XML for a task, the execution time limit is specified in the ExecutionTimeLimit element of the Task Scheduler schema.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

Task Scheduler