20109 月29
C# Windows Mobile 实现休眠状态下定时任务
OpenNETCF.WindowsCE.LargeIntervalTimer llTimer = new OpenNETCF.WindowsCE.LargeIntervalTimer(); //第一次触发时间 llTimer.FirstEventTime = DateTime.Now; llTimer.Interval = new TimeSpan(0, 30, 0); //是否只触发一次 llTimer.OneShot = false; llTimer.Tick += new EventHandler(llTimer_Tick); llTimer.Enabled = true; static void llTimer_Tick(object sender, EventArgs e) { // }
来源:http://www.cnblogs.com/fox23/archive/2008/02/03/AtTime.html
opennetcf下载:http://www.opennetcf.com/Products/SmartDeviceFramework/tabid/65/Default.aspx
本文地址:https://wizzer.cn/archives/1185 , 转载请保留.