Share via


idleSettingsType 複雜類型

定義 IdleSettings (settingsType) 元素的子專案和排序資訊。

<xs:complexType name="idleSettingsType">
    <xs:all>
        <xs:element name="Duration"
            default="PT10M"
            minOccurs="0"
        >
            <xs:simpleType>
                <xs:restriction
                    base="duration"
                >
                    <xs:minInclusive
                        value="PT1M"
                     />
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="WaitTimeout"
            default="PT1H"
            minOccurs="0"
        >
            <xs:simpleType>
                <xs:restriction
                    base="duration"
                >
                    <xs:minInclusive
                        value="PT1M"
                     />
                </xs:restriction>
            </xs:simpleType>
        </xs:element>
        <xs:element name="StopOnIdleEnd"
            type="boolean"
            default="true"
            minOccurs="0"
         />
        <xs:element name="RestartOnIdle"
            type="boolean"
            default="false"
            minOccurs="0"
         />
    </xs:all>
</xs:complexType>

子元素

元素 類型 Description
持續時間 指定在閒置條件中允許啟動工作的時間量。
RestartOnIdle boolean 工作會在閒置條件啟動時立即重新開機。
StopOnIdleEnd boolean 指定如果閒置條件在超過閒置持續時間之前結束,工作就會終止。
WaitTimeout 指定等候閒置條件啟動的時間量。 如果未為此元素指定任何值,則工作排程器服務會無限期等候閒置狀況發生。

規格需求

需求
最低支援的用戶端
Windows Vista [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]

另請參閱

工作排程器架構複雜類型

工作排程器