Skip to content

Latest commit

 

History

History
89 lines (55 loc) · 2.92 KB

taskschedulerschema-interval-repetitiontype-element.md

File metadata and controls

89 lines (55 loc) · 2.92 KB
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
Interval element Task Scheduler
apiref
Interval
Schema
reference
05/31/2018

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.

Parent element

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.

Remarks

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.

Examples

For a complete example of the XML for a task that uses a repetition interval, see Daily Trigger Example (XML).

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements

Task Scheduler