Dragon 18 Palm: Timer Overview

Source: Internet
Author: User
Tags data structures garbage collection hash shallow copy tostring
Timer Overview

Public constructors
The Timer constructor has been overloaded. Initializes a new instance of the Timer class.

Public properties
Container (inherited from Component) gets the IContainer, which contains Component.
Enabled Gets or sets whether the timer is running.
Interval Gets or sets the time (in milliseconds) between when the timer starts to tick.
Site (inherited from Component) Gets or sets the ISite of the Component.

Public methods
Createobjref (inherited from MarshalByRefObject) creates an object that contains all the relevant information needed to generate a proxy for communicating with a remote object.
Dispose (inherited from Component) has been overloaded. Frees resources that are occupied by Component.
Equals (inherited from Object) has been overloaded. Determines whether two instances of Object are equal.
GetHashCode (inherited from Object) serves as a hash function of a specific type, and is suitable for use in hashing algorithms and data structures such as a hash table.
Getlifetimeservice (inherited from MarshalByRefObject) retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object) gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) gets the lifetime service object that controls the lifetime policy for this instance.
Start timer.
The Stop Stop timer.
ToString has been overridden. See object.tostring.

Public events
Disposed (inherited from Component) adds an event handler to listen for disposed events on the component.
Tick occurs when the specified timer interval has passed and the timer is enabled.

Protected properties
DesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
Events (inherited from Component) gets a list of event handlers attached to this Component.

Protected methods
Dispose has been overloaded. has been overridden. See Component.dispose.
Finalize (inherited from Object) has been overridden. Allows object to attempt to free resources and perform other cleanup operations before garbage collection reclaims Object.
In C # and C + +, destructor syntax is used to represent finalizers.

GetService (inherited from Component) returns an object that represents the service provided by Component or its Container.
MemberwiseClone (inherited from Object) creates a shallow copy of the current object.
Ontick raises the Tick event.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.