Represents a maintenance trigger.
The MaintenanceTrigger class has these types of members:
The MaintenanceTrigger class has these constructors.
|MaintenanceTrigger||Initializes a new instance of a maintenance trigger.|
The MaintenanceTrigger class inherits methods from the Object class (C#/VB/C++).
The MaintenanceTrigger class has these properties.
|Read-only||Gets the interval of a maintenance trigger.|
|Read-only||Gets whether the maintenance trigger is used only once or each time the FreshnessTime interval elapses.|
Background tasks that use a maintenance trigger run only when the system is connected to AC power.
Note This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).
The following example shows how to create and register a maintenance trigger.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|