Share via


TimeTrigger.FreshnessTime 屬性

定義

取得時間事件觸發程式的間隔。

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

屬性值

UInt32

unsigned int

uint32_t

指定要在排程背景工作之前等候的分鐘數。 FreshnessTime的最小值是 15 分鐘。 系統會在 FreshnessTime 經過 15 分鐘內排程工作。

備註

系統會針對計時器要求使用 15 分鐘的刻度頻率。 在 FreshnessTime經過之後,會依下一個刻度排程時間觸發的背景工作。 如果 OneShot 屬性為 false, FreshnessTime 會指定週期性工作的間隔。

注意

若要瞭解時間觸發程式可能會引發的時間範圍,請考慮 將 FreshnessTime 設定為 15 分鐘。 由於系統會在 FreshnessTime 經過 15 分鐘內排程工作,因此觸發程式引發前最多可能需要 30 分鐘的時間。

適用於