This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Timer Members
Public:
Constructor
Properties
AutoReset |
Gets and Sets a value indicating whether the timer will be restarted when it is enabled. |
Enabled |
Gets or sets the a value indicating whether the timer is enabled to fire events at a defined interval. |
Interval |
Gets or sets the interval between timer events. |
Site (inherited from Component) |
Gets or sets the site of the Component. |
SynchronizingObject |
Represents the object used to marshal the event handler calls issued when an interval has elapsed. Normally this property will be set when the component is placed inside a control or a from, since those components are bound to a specific thread. |
Methods
BeginInit |
Notifies the object that initialization is beginning and puts it on standby. |
Close |
Frees all of the resources allocated by this Timer. |
Dispose |
Closes the Timer and allows the system to dispose of its memory. |
EndInit |
Notifies the object that initialization is complete. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Start |
Starts the timer by setting Enabled to true. If the Timer is already enabled, the count is restarted. |
Stop |
Stops the timer by setting Enabled to false. |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
Events
Timer |
Occurs when the Interval has elapsed and a timer tick is triggered. |
Protected:
Methods
Finalize |
Closes the Timer and causes the object's resources to be released. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
Event Hookup:
Methods
AddOnTimer |
Adds an event handler for the Timer event. |
RemoveOnTimer |
Removes an event handler that has been associated with the Timer event. |
See Also
Timer Class | System.Timers Namespace