Click or drag to resize

Timer Class

High resolution, thread based Timer class.
Inheritance Hierarchy

Namespace: ZylSoft.Timers
Assembly: ZylTimer (in ZylTimer.dll) Version: 1.31.8797.18884
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class Timer : Component

The Timer type exposes the following members.

Constructors
 NameDescription
Public methodTimer Constructor.
Public methodTimer(Boolean) Constructor.
Public methodTimer(IContainer) Constructor.
Public methodTimer(Int32) Constructor.
Public methodTimer(Boolean, Int32) Constructor.
Top
Properties
 NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyCycled When this property is true, then the OnTimer event will be fired periodically, otherwise the event will be fired only once.
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEnabled Enables (starts) or disables (stops) the timer.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyInterval The time interval in milliseconds. The OnTick event is fired repeatedly after this measured interval.
Public propertyIntervalInMinutes The time interval in minutes. The OnTick event is fired repeatedly after this measured interval.
Public propertyIntervalInSeconds The time interval in seconds. The OnTick event is fired repeatedly after this measured interval.
Public propertyIsPaused Indicates if the timer is paused or not.
Public propertyPriority Priority of the timer thread.
Public propertyRepeatCount Specifies how many times the OnTimer event will be fired. When this property is 0, then the event will be fired continually.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyStatic memberUnlockKey Unlock key.
Top
Methods
 NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Clean up any resources being used.
(Overrides ComponentDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnTick Raises the Tick event.
Public methodStart Starts the timer. (Enabled = true)
Public methodStop Stops the timer. (Enabled = false)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventTick Occurs when the interval is expired.
Top
See Also