MaintenanceTrigger(UInt32, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of a maintenance trigger.
public:
MaintenanceTrigger(unsigned int freshnessTime, bool oneShot);
MaintenanceTrigger(uint32_t const& freshnessTime, bool const& oneShot);
public MaintenanceTrigger(uint freshnessTime, bool oneShot);
function MaintenanceTrigger(freshnessTime, oneShot)
Public Sub New (freshnessTime As UInteger, oneShot As Boolean)
Parameters
- freshnessTime
-
UInt32
unsigned int
uint32_t
The number of minutes to wait before scheduling the background task. The system schedules the task within 15 minutes after freshnessTime elapses.
- oneShot
-
Boolean
bool
True if the maintenance trigger is used once; false if it is used each time the freshnessTime interval elapses.