ylbtech-System.Timers.cs
1.返回顶部
1、
#region 程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll
#endregion using System.ComponentModel; namespace System.Timers
{
//
// 摘要:
// 在设定的间隔之后生成事件,带有生成重复事件的选项。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。
[DefaultEvent("Elapsed")]
[DefaultProperty("Interval")]
public class Timer : Component, ISupportInitialize
{
//
// 摘要:
// 初始化 System.Timers.Timer 类的新实例,并将所有属性设置为初始值。
public Timer();
//
// 摘要:
// 初始化 System.Timers.Timer 类的新实例,并将 System.Timers.Timer.Interval 属性设置为指定的毫秒数。
//
// 参数:
// interval:
// 事件之间经过的时间(以毫秒为单位)。 该值必须大于零且小于或等于 System.Int32.MaxValue。
//
// 异常:
// T:System.ArgumentException:
// 值 interval 参数是否小于或等于零,或者大于 System.Int32.MaxValue。
public Timer(double interval); //
// 摘要:
// 获取或设置一个布尔值,该值指示 System.Timers.Timer 是否应只引发一次 System.Timers.Timer.Elapsed 事件((false)
// 或重复 (true))。
//
// 返回结果:
// 如果 System.Timers.Timer 应在每次间隔结束时引发 System.Timers.Timer.Elapsed 事件,则为 true;如果它仅在间隔第一次结束后引发一次
// System.Timers.Timer.Elapsed 事件,则为 false。 默认值为 true。
[Category("Behavior")]
[DefaultValue(true)]
[TimersDescription("TimerAutoReset")]
public bool AutoReset { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示 System.Timers.Timer 是否应引发 System.Timers.Timer.Elapsed 事件。
//
// 返回结果:
// 如果 System.Timers.Timer 应引发 System.Timers.Timer.Elapsed 事件,则为 true;否则,为 false。
// 默认值为 false。
//
// 异常:
// T:System.ObjectDisposedException:
// 无法设置此属性,因为计时器已被释放。
//
// T:System.ArgumentException:
// System.Timers.Timer.Interval 属性设置为一个值大于 System.Int32.MaxValue 启用计时器之前。
[Category("Behavior")]
[DefaultValue(false)]
[TimersDescription("TimerEnabled")]
public bool Enabled { get; set; }
//
// 摘要:
// 获取或设置引发 System.Timers.Timer.Elapsed 事件的间隔(以毫秒为单位)。
//
// 返回结果:
// System.Timers.Timer.Elapsed 事件之间经过的时间(以毫秒为单位)。 该值必须大于零并小于或等于 System.Int32.MaxValue。
// 默认值为 100 毫秒。
//
// 异常:
// T:System.ArgumentException:
// 时间间隔小于或等于零。- 或 -间隔值大于 System.Int32.MaxValue, ,和计时器当前处于启用状态。 (如果当前未启用计时器,不是引发异常之前将变为启用状态。)
[Category("Behavior")]
[DefaultValue()]
[SettingsBindable(true)]
[TimersDescription("TimerInterval")]
public double Interval { get; set; }
//
// 摘要:
// 获取或设置在设计模式中将 System.Timers.Timer 绑定到其容器的站点。
//
// 返回结果:
// System.ComponentModel.ISite 界面,此界面表示将 System.Timers.Timer 对象绑定到其容器的站点。
public override ISite Site { get; set; }
//
// 摘要:
// 获取或设置对象,该对象用于在间隔过后封送发出的事件处理程序调用。
//
// 返回结果:
// System.ComponentModel.ISynchronizeInvoke,它表示对象,该对象用于在间隔过后封送发出的事件处理程序调用。 默认值为
// null。
[Browsable(false)]
[DefaultValue(null)]
[TimersDescription("TimerSynchronizingObject")]
public ISynchronizeInvoke SynchronizingObject { get; set; } //
// 摘要:
// 达到间隔时发生。
[Category("Behavior")]
[TimersDescription("TimerIntervalElapsed")]
public event ElapsedEventHandler Elapsed; //
// 摘要:
// 开始用于窗体或由其他组件使用的 System.Timers.Timer 的运行时初始化。
public void BeginInit();
//
// 摘要:
// 释放由 System.Timers.Timer 占用的资源。
public void Close();
//
// 摘要:
// 结束用于窗体或由其他组件使用的 System.Timers.Timer 的运行时初始化。
public void EndInit();
//
// 摘要:
// 通过将 System.Timers.Timer.Enabled 设置为 true 开始引发 System.Timers.Timer.Elapsed 事件。
//
// 异常:
// T:System.ArgumentOutOfRangeException:
// 创建 System.Timers.Timer,使其时间间隔等于或大于 System.Int32.MaxValue + 1,或将其时间间隔设置为小于零。
public void Start();
//
// 摘要:
// 通过将 System.Timers.Timer.Enabled 设置为 false 停止引发 System.Timers.Timer.Elapsed 事件。
public void Stop();
//
// 摘要:
// 释放由当前 System.Timers.Timer 使用的所有资源。
//
// 参数:
// disposing:
// 若要释放托管资源和非托管资源,则为 true;若仅释放非托管资源,则为 false。
protected override void Dispose(bool disposing);
}
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

.NETFramework:Timers的更多相关文章

  1. .NETFramework:DateTimeOffset

    ylbtech-.NETFramework:DateTimeOffset 表示一个时间点,通常相对于协调世界时(UTC)的日期和时间来表示. 1.程序集 mscorlib, Version=4.0.0 ...

  2. .NETFramework:Random

    ylbtech-.NETFramework:Random 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c ...

  3. .NETFramework:ConfigurationManager

    ylbtech-.NETFramework:ConfigurationManager 1.程序集 System.Configuration, Version=4.0.0.0, Culture=neut ...

  4. .NETFramework:StringBuilder

    ylbtech-.NETFramework:StringBuilder 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken ...

  5. .NETFramework:WebClient

    ylbtech-.NETFramework:WebClient 1.程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5 ...

  6. .NETFramework:Stream

    ylbtech-.NETFramework:Stream 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Publi ...

  7. .NETFramework:HttpContext

    ylbtech-.NETFramework:HttpContext 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...

  8. .NETFramework:Encoding

    ylbtech-.NETFramework:Encoding 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Pub ...

  9. .NETFramework:HttpRuntime

    ylbtech-.NETFramework:HttpRuntime 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...

随机推荐

  1. Go语言阅读小笔记,来自知呼达达关于unsafe.Pointer的分享.

    第一式 - 获得Slice和String的内存数据 func stringPointer(s string) unsafe.Pointer { p := (*reflect.StringHeader) ...

  2. CCNP路由实验之十二 MPLS

     个.第3个数据包„„同样的操作.包含查询路由表.重写MAC地址,CRC校验等. 系列路由器.或者12000系列路由器. Netflow switching 通过一种标准的交换机制,处理了流的第一 ...

  3. 蜗牛—Android基础之button监听器

    XML文件中有一个textView 和 一个button. <LinearLayout xmlns:android="http://schemas.android.com/apk/re ...

  4. js json 对象

    JSON 语法规则 JSON 语法是 JavaScript 对象表示法语法的子集. 数据在名称/值对中 数据由逗号分隔 大括号保存对象 中括号保存数组 JSON 名称/值对 JSON 数据的书写格式是 ...

  5. 专訪阿里陶辉:大规模分布式系统、高性能server设计经验分享

    http://www.csdn.net/article/2014-06-27/2820432 摘要:先后就职于在国内知名的互联网公司,眼下在阿里云弹性计算部门做架构设计与核心模块代码的编写,主要负责云 ...

  6. cocosStudio中使用PageView,ListView和ScrollView

    晚上吃东西好像吃坏肚子了,.但是技术还要继续研究.最近工作中要使用CocosStudio做界面,好吧,不管对他有什么偏见,学习一下吧.这里主要记录一下三个控件的使用和说明.就是ScrollView,L ...

  7. 「零秒思考」是个神话,不过这款笔记术你值得拥有zz

    今天读完了赤羽雄二的<零秒思考>,作者是一位在麦肯锡公司工作了 14 年的资深顾问.依照作者的说法,「零秒思考」指的是: 瞬间便能认清现状, 瞬间便能整理问题, 瞬间便能考虑出解决办法, ...

  8. Django-admin导出到表格

    class AdminReport(admin.ModelAdmin): actions = ["saveexecl"] # 自定义的action(导出到excel表格) list ...

  9. bvlc_reference_caffenet.caffemodel

    #uncoding:utf-8 # set up Python environment: numpy for numerical routines, and matplotlib for plotti ...

  10. 在Linux的Eclipse下搭建Android环境

    http://blog.csdn.net/lyonte/article/details/6407242 一.Java环境安装配置详见<在Linux下搭建Java环境>http://blog ...