title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Interval (repetitionType) Element |
Specifies the amount of time between each restart of the task. |
28c6475a-88e3-44ac-92c7-6f463e8460c9 |
|
|
|
|
reference |
05/31/2018 |
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.
Element | Derived from | Description |
---|---|---|
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).
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |