分类: ASP.NET 配置 2011-05-20 16:02 59人阅读 收藏 举报
- Global.asax:
-
<%@ Application Language="C#" Inherits="路径.Global" CodeBehind="Global.cs"%>
- Global.cs:
-
public class Global : System.Web.HttpApplication
- {
-
public static Timer gtimer = null;
-
protected void Application_Start(object sender, EventArgs e)
- {
-
gtimer = new Timer(1000000);
-
-
-
gtimer.Elapsed += new System.Timers.ElapsedEventHandler(this.TimerEventFunction);
-
-
-
gtimer.AutoReset = true;
-
gtimer.Enabled = true;
- }
-
protected void TimerEventFunction(Object sender, ElapsedEventArgs e)
- {
-
- }
- }
相关文章:
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-10-29
-
2022-12-23
-
2021-09-24
-
2021-09-18
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-08-26
-
2021-06-01
相关资源
-
下载
2021-07-01
-
下载
2021-06-24
-
下载
2023-01-10
-
下载
2021-06-24