Dela via


MaintenanceTrigger.FreshnessTime Property

Definition

Gets the interval of a maintenance trigger.

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

Property Value

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.

Remarks

The provided value acts as a suggested value, because it may change depending on system polices in place. Examples of system policies that could override this value include Battery Saver, Game Mode, or the system detecting that the application is not being used very often. The list of system policies that affect this value can also change from release to release.

Passing in a value greater than 30 days (in minutes) may result in an argument exception.

Applies to