Export (0) Print
Expand All

Timer Members

Generates recurring events in an application.

The Timer type exposes the following members.

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

  NameDescription
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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
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.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
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.)
Protected method MemberwiseClone Overloaded.
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

  NameDescription
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.
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property Enabled Gets or sets a value indicating whether the Timer should raise the Elapsed event.
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Interval Gets or sets the interval at which to raise the Elapsed event.
Public property Site Infrastructure. Gets or sets the site that binds the Timer to its container in design mode. (Overrides Component.Site.)
Public property SynchronizingObject Gets or sets the object used to marshal event-handler calls that are issued when an interval has elapsed.
Top

  NameDescription
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

Community Additions

ADD
Show:
© 2014 Microsoft