在指定的日期和时间呗触发,因此这个触发器只会运行一次
TimerTrigger
01 Syntax
Microsoft.VisualBasic.ComponentModel.Triggers.TimerTrigger
02 Methods
03 Properties
04 Members
#ctor(
DateTime, Action, Int32)Parameters
| Name | Type | Description |
|---|---|---|
time | DateTime | 只精确到分,不会比较秒数 |
task | Action | - |
interval | Int32 | ms |
__test
不计算毫秒
Start
启动计时器线程,这个方法不会阻塞当前的线程
Time
当判定到达这个指定的时间之后就会触发动作
Interval
ms
ToString()
Stop()