Share via


MaintenanceTrigger(UInt32, Boolean) Constructor

Definition

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.

Applies to