Bewerken

Delen via


repetitionType Complex Type

Defines the child elements and sequence information for the Repetition (triggerBaseType) element.

<xs:complexType name="repetitionType">
    <xs:all>
        <xs:element name="Interval">
            <xs:simpleType>
                <xs:restriction
                    base="duration"
                >
                    <xs:minInclusive
                        value="PT1M"
                     />
                    <xs:maxInclusive
                        value="P31D"
                     />
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="Duration"
            minOccurs="0"
        >
            <xs:simpleType>
                <xs:restriction
                    base="duration"
                >
                    <xs:minInclusive
                        value="PT1M"
                     />
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="StopAtDurationEnd"
            type="boolean"
            default="false"
            minOccurs="0"
         />
    </xs:all>
</xs:complexType>

Child elements

Element Type Description
Duration Specifies how long the pattern is repeated. If no value is specified, the pattern is repeated indefinitely.
Interval Specifies the amount of time between each restart of the task.
StopAtDurationEnd boolean Specifies that a running instance of the task is stopped at the end of the repetition pattern duration.

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 Complex Types

Task Scheduler