System.Timers.Timer Members

The members of System.Timers.Timer are listed below.

See Also: Inherited members from System.ComponentModel.Component

Public Constructors

Initializes a new instance of the System.Timers.Timer class, and sets all the properties to their initial values.

Initializes a new instance of the System.Timers.Timer class, and sets the Timer.Interval property to the specified number of milliseconds.

Public Properties

AutoResetbool.

Gets or sets a value indicating whether the System.Timers.Timer should raise the Timer.Elapsed event each time the specified interval elapses or only after the first time it elapses.

Enabledbool.

Gets or sets a value indicating whether the System.Timers.Timer should raise the Timer.Elapsed event.

Intervaldouble.

Gets or sets the interval at which to raise the Timer.Elapsed event.

override
SiteSystem.ComponentModel.ISite.

Gets or sets the site that binds the System.Timers.Timer to its container in design mode.

SynchronizingObjectSystem.ComponentModel.ISynchronizeInvoke.

Gets or sets the object used to marshal event-handler calls that are issued when an interval has elapsed.

Public Methods

BeginInit()

Begins the run-time initialization of a System.Timers.Timer that is used on a form or by another component.

Close()

Releases the resources used by the System.Timers.Timer.

EndInit()

Ends the run-time initialization of a System.Timers.Timer that is used on a form or by another component.

Start()

Starts raising the Timer.Elapsed event by setting Timer.Enabled to true.

Stop()

Stops raising the Timer.Elapsed event by setting Timer.Enabled to false.

Protected Methods

override
Dispose(bool)

Releases all resources used by the current System.Timers.Timer.

Public Events

Elapsed

Occurs when the interval elapses.