System::Threading::Timer::Change 方法

Timer::Change(int64_t, int64_t) method

重新调度或取消计时器。

bool System::Threading::Timer::Change(int64_t dueTime, int64_t period)
ParameterType描述
dueTimeint64_tTimeout 在下一次回调函数调用之前的时间,单位为毫秒;负值即使已调度也会取消定时器。
periodint64_tTimeout 连续回调函数调用之间的间隔,单位为毫秒;非正值表示定时器只应执行一次。

另见

Timer::Change(System::TimeSpan, System::TimeSpan) method

重新调度或取消计时器。

bool System::Threading::Timer::Change(System::TimeSpan dueTime, System::TimeSpan period)
ParameterType描述
dueTimeSystem::TimeSpanTimeout 在下一次回调函数调用之前的时间;负值即使已调度也会取消定时器。
periodSystem::TimeSpanTimeout 连续回调函数调用之间的间隔;非正值表示定时器只应执行一次。

另见