This documentation is archived and is not being maintained.

Timer Members

Generates recurring events in an application.

The following tables list the members exposed by the Timer type.

  Name Description
Public method Timer Overloaded. Initializes a new instance of the Timer class.
Top

(see also Protected Properties )
  Name Description
Public property AutoReset Gets or sets a value indicating whether the Timer should raise the Elapsed event each time the specified interval elapses or only after the first time it elapses.
Public property Container  Gets the IContainer that contains the Component.(inherited from Component)
Public property Enabled Gets or sets a value indicating whether the Timer should raise the Elapsed event.
Public property Interval Gets or sets the interval at which to raise the Elapsed event.
Public property Site Overridden. Gets or sets the site that binds the Timer to its container in design mode.
Public property SynchronizingObject Gets or sets the object used to marshal event-handler calls that are issued when an interval has elapsed.
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(inherited from Component)
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode.(inherited from Component)
Protected property Events  Gets the list of event handlers that are attached to this Component.(inherited from Component)
Top

(see also Protected Methods )
  Name Description
Public method BeginInit Begins the run-time initialization of a Timer that is used on a form or by another component.
Public method Close Releases the resources used by the Timer.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Dispose Overloaded. Releases all resources used by the current Timer.
Public method EndInit Ends the run-time initialization of a Timer that is used on a form or by another component.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Start Starts raising the Elapsed event by setting Enabled to true.
Public method Stop Stops raising the Elapsed event by setting Enabled to false.
Public method ToString  Returns a String containing the name of the Component, if any. This method should not be overridden. (inherited from Component)
Top

  Name Description
Protected method Dispose Overloaded. Overridden. Releases all resources used by the current Timer.
Protected method Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (inherited from Component)
Protected method MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Top

  Name Description
Public event Disposed  Occurs when the component is disposed by a call to the Dispose method. (inherited from Component)
Public event Elapsed Occurs when the interval elapses.
Top
Show: