Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 985 Bytes

timetrigger_timetrigger_693505325.md

File metadata and controls

29 lines (20 loc) · 985 Bytes
-api-id -api-type
M:Windows.ApplicationModel.Background.TimeTrigger.#ctor(System.UInt32,System.Boolean)
winrt method

Windows.ApplicationModel.Background.TimeTrigger.TimeTrigger

-description

Initializes a new instance of a time event trigger.

-parameters

-param freshnessTime

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.

-param oneShot

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

-remarks

-examples

-see-also