Interval (restartType) Element
Specifies how long the Task Scheduler will attempt to restart the task. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, "PT5M" is 5 minutes, "PT1H" is 1 hour, and "PT20M" is 20 minutes). The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.
<xs:element name="Interval"> <xs:simpleType> <xs:restriction base="duration" > <xs:minInclusive value="PT1M" /> <xs:maxInclusive value="P31D" /> </xs:restriction> </xs:simpleType> </xs:element>
The element is defined by the restartType complex type.
Specifies that the Task Scheduler will attempt to restart the task if the task fails for any reason.
If this element is specified, the Count element must also be specified to tell the Task Scheduler how many times it should try to restart the task.
For C++ development, see RestartInterval Property of ITaskSettings.
For script development, see TaskSettings.RestartInterval.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|
Build date: 11/16/2013