Timer Class |
The Timer type exposes the following members.
| Name | Description | |
|---|---|---|
| Timer | Constructor. | |
| Timer(Boolean) | Constructor. | |
| Timer(IContainer) | Constructor. | |
| Timer(Int32) | Constructor. | |
| Timer(Boolean, Int32) | Constructor. |
| Name | Description | |
|---|---|---|
| CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component) | |
| Container | Gets the IContainer that contains the Component. (Inherited from Component) | |
| Cycled | When this property is true, then the OnTimer event will be fired periodically, otherwise the event will be fired only once. | |
| DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component) | |
| Enabled | Enables (starts) or disables (stops) the timer. | |
| Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component) | |
| Interval | The time interval in milliseconds. The OnTick event is fired repeatedly after this measured interval. | |
| IntervalInMinutes | The time interval in minutes. The OnTick event is fired repeatedly after this measured interval. | |
| IntervalInSeconds | The time interval in seconds. The OnTick event is fired repeatedly after this measured interval. | |
| IsPaused | Indicates if the timer is paused or not. | |
| Priority | Priority of the timer thread. | |
| RepeatCount | Specifies how many times the OnTimer event will be fired. When this property is 0, then the event will be fired continually. | |
| Site | Gets or sets the ISite of the Component. (Inherited from Component) | |
| UnlockKey | Unlock key. |
| Name | Description | |
|---|---|---|
| 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) | |
| Dispose | Releases all resources used by the Component. (Inherited from Component) | |
| Dispose(Boolean) |
Clean up any resources being used.
(Overrides ComponentDispose(Boolean)) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) | |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) | |
| OnTick | Raises the Tick event. | |
| Start | Starts the timer. (Enabled = true) | |
| Stop | Stops the timer. (Enabled = false) | |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component) |
| Name | Description | |
|---|---|---|
| Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component) | |
| Tick | Occurs when the interval is expired. |