Interval (repetitionType) Element
Specifies the amount of time between each restart of 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 repetitionType complex type.
|Repetition||repetitionType||Specifies how often the task is run and how long the repetition pattern is repeated after the task is started.
For scripting development, the interval of the repetition pattern is specified using the RepetitionPattern.Interval property.
For C++ development, the interval of the repetition pattern is specified using the IRepetitionPattern::Interval property.
For a complete example of the XML for a task that uses a repetition interval, see Daily Trigger Example (XML).
|Minimum supported client
||Windows Vista [desktop apps only]
|Minimum supported server
||Windows Server 2008 [desktop apps only]