TimeTrigger(UInt32, Boolean) Constructor

Definition

Initializes a new instance of a time event trigger.

public:
 TimeTrigger(unsigned int freshnessTime, bool oneShot);
 TimeTrigger(uint32_t const& freshnessTime, bool const& oneShot);
public TimeTrigger(uint freshnessTime, bool oneShot);
function TimeTrigger(freshnessTime, oneShot)
Public Sub New (freshnessTime As UInteger, oneShot As Boolean)

Parameters

freshnessTime
UInt32

unsigned int

uint32_t

Specifies the number of minutes to wait before scheduling the background task. The system schedules the task within 15 minutes after freshnessTime elapses. If the OneShot property is false, freshnessTime specifies the interval between recurring tasks.

Note

If FreshnessTime is set to less than 15 minutes, an exception is thrown when attempting to register the background task.

oneShot
Boolean

bool

True if the time event trigger will be used once; false if it will be used each time freshnessTime elapses.

Applies to