Show / Hide Table of Contents

Method timer.Stop


Overload

Stops the timer.

public void Stop()
Exceptions
InvalidOperationException

Called not in the same thread as Start.

Remarks

The callback function will not be called after this. Later you can start the timer again (call timer.After or timer.Every). Don't need to call this function for single-period timers. For periodic timers it is optional; the timer stops when the thread ends. This function must be called in the same thread as Start.