Share via


TimeTrigger.FreshnessTime Property

Definition

Gets the interval of a time event trigger.

public:
 property unsigned int FreshnessTime { unsigned int get(); };
uint32_t FreshnessTime();
public uint FreshnessTime { get; }
var uInt32 = timeTrigger.freshnessTime;
Public ReadOnly Property FreshnessTime As UInteger

Property Value

UInt32

unsigned int

uint32_t

Specifies the number of minutes to wait before scheduling the background task. The minimum value for FreshnessTime is 15 minutes. The system schedules the task within 15 minutes after FreshnessTime elapses.

Remarks

The system uses a 15-minute tick frequency for timer requests. A time-triggered background task is scheduled on the next tick after FreshnessTime elapses. If the OneShot property is false, FreshnessTime specifies the interval for a recurring task.

Note

To understand the timeframe within which the time trigger may fire, consider a FreshnessTime set to 15 minutes. Because the system schedules the task within 15 minutes after FreshnessTime elapses, it may be up to 30 minutes before the time trigger fires.

Applies to