ITrigger::ExecutionTimeLimit property

Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run.

This property is read/write.

Syntax


HRESULT put_ExecutionTimeLimit(
  [in]   BSTR timelimit
);

HRESULT get_ExecutionTimeLimit(
  [out]  BSTR *pTimelimit
);

Property value

The maximum amount of time that the task launched by the trigger is allowed to run.

Remarks

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).

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITrigger
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft