NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Timer Methods

The methods of the Timer class are listed below. For a complete list of Timer class members, see the Timer Members topic.

Public:

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.

Protected:

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:

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