摘要: 让任务每天仅执行一次,居然让我想了很久。 DateTime executeTime ;1 .ctor //构造函数 2{ 3 executeTime = DateTime.Now; 4} 5 6private void ExecuteTask() 7{ 8 if(DateTime.Now > executeTime) 9 { //Todo : 添加代码}10 executeTime=... 阅读全文
posted @ 2006-10-16 21:57 xiaowy 阅读(353) 评论(2) 推荐(0)