System::Threading::Timer::Change method

Timer::Change(int64_t, int64_t) method

Re-schedules or cancels timer.

bool System::Threading::Timer::Change(int64_t dueTime, int64_t period)
ParameterTypeDescription
dueTimeint64_tTimeout before next invocation of callback function, in milliseconds; negative values cancel timer even if it was scheduled.
periodint64_tTimeout between consequental invocations of callback function, in milliseconds; non-positive values mean that timer should only be executed once.

See Also

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

Re-schedules or cancels timer.

bool System::Threading::Timer::Change(System::TimeSpan dueTime, System::TimeSpan period)
ParameterTypeDescription
dueTimeSystem::TimeSpanTimeout before next invocation of callback function; negative values cancel timer even if it was scheduled.
periodSystem::TimeSpanTimeout between consequental invocations of callback function; non-positive values mean that timer should only be executed once.

See Also