| Ylbtech-.netframework-timers:timer |
| 1. Assembly System, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089 back to top |
1.
#regionAssembly System, version=4.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089//C:\Program Files (x86) \reference Assemblies\microsoft\framework\. Netframework\v4.5.2\system.dll#endregionusingSystem.ComponentModel;namespacesystem.timers{// //Summary://generates events after a set interval with the option to generate duplicate events. To explore this type of. NET Framework source code, see Reference source. [DefaultEvent ("Elapsed")] [Defaultproperty ("Interval")] Public classtimer:component, ISupportInitialize {// //Summary://Initializes a new instance of the System.Timers.Timer class and sets all properties to the initial value. PublicTimer (); // //Summary://Initializes a new instance of the System.Timers.Timer class and sets the System.Timers.Timer.Interval property to the specified number of milliseconds. // //Parameters://interval://the elapsed time, in milliseconds, between events. The value must be greater than 0 and less than or equal to System.Int32.MaxValue. // //Exception://T:System.ArgumentException://the value of the interval parameter is less than or equal to zero, or greater than System.Int32.MaxValue. PublicTimer (Doubleinterval); // //Summary://Gets or sets a Boolean value that indicates whether System.Timers.Timer should raise only one System.Timers.Timer.Elapsed event (false)//or repeat (true)). // //return Result://true if the System.Timers.Timer should raise the System.Timers.Timer.Elapsed event at the end of each interval, if it is only raised once after the interval has ended for the first time//The System.Timers.Timer.Elapsed event, or false. The default value is true. [Category ("Behavior")] [DefaultValue (true)] [Timersdescription ("Timerautoreset")] Public BOOLAutoReset {Get;Set; } // //Summary://Gets or sets a value that indicates whether System.Timers.Timer should raise the System.Timers.Timer.Elapsed event. // //return Result://true if the System.Timers.Timer should raise the System.Timers.Timer.Elapsed event, otherwise, false. //the default value is False. // //Exception://T:System.ObjectDisposedException://This property cannot be set because the timer has been disposed. // //T:System.ArgumentException://the System.Timers.Timer.Interval property is set to a value that is greater than System.Int32.MaxValue before the timer is enabled. [Category ("Behavior")] [DefaultValue (false)] [Timersdescription ("timerenabled")] Public BOOLEnabled {Get;Set; } // //Summary://Gets or sets the interval (in milliseconds) at which the System.Timers.Timer.Elapsed event is raised. // //return Result://the elapsed time (in milliseconds) between the System.Timers.Timer.Elapsed events. The value must be greater than 0 and less than or equal to System.Int32.MaxValue. //The default value is 100 milliseconds. // //Exception://T:System.ArgumentException://The time interval is less than or equal to zero. -or-the interval value is greater than System.Int32.MaxValue, and the timer is currently enabled. (If the timer is not currently enabled, it will become enabled before an exception is thrown.) )[Category ("Behavior")] [DefaultValue ( -)] [Settingsbindable (true)] [Timersdescription ("TimerInterval")] Public DoubleInterval {Get;Set; } // //Summary://Gets or sets the site that binds System.Timers.Timer to its container in design mode. // //return Result://The System.ComponentModel.ISite interface, which represents the site that binds the System.Timers.Timer object to its container. Public OverrideISite Site {Get;Set; } // //Summary://Gets or sets the object used to marshal an event handler call that is emitted after the interval. // //return Result://A System.ComponentModel.ISynchronizeInvoke that represents an object that is used to marshal an event handler call that is emitted after the interval. The default value is//NULL. [Browsable (false)] [DefaultValue (NULL)] [Timersdescription ("Timersynchronizingobject")] PublicISynchronizeInvoke SynchronizingObject {Get;Set; } // //Summary://occurs when the interval is reached. [Category ("Behavior")] [Timersdescription ("timerintervalelapsed")] Public EventElapsedeventhandler Elapsed; // //Summary://starts the run-time initialization for a form or System.Timers.Timer used by another component. Public voidBeginInit (); // //Summary://frees the resources occupied by System.Timers.Timer. Public voidClose (); // //Summary://ends the run-time initialization of a System.Timers.Timer used by a form or by another component. Public voidEndInit (); // //Summary://Start raising the System.Timers.Timer.Elapsed event by setting System.Timers.Timer.Enabled to True. // //Exception://T:System.ArgumentOutOfRangeException://Create a System.Timers.Timer to make its interval equal to or greater than System.Int32.MaxValue + 1, or set its time interval to less than 0. Public voidStart (); // //Summary://Stop Raising the System.Timers.Timer.Elapsed event by setting System.Timers.Timer.Enabled to False. Public voidStop (); // //Summary://releases all resources used by the current System.Timers.Timer. // //Parameters://disposing://true if the managed and unmanaged resources are freed, or false if only unmanaged resources are disposed. protected Override voidDispose (BOOLdisposing); }}2.
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
. Netframework-timers:timer