1、创建一个web应用程序,并签名

2、创建12目录,并在FEATURES中创建Feature目录及其feature.xm,注意需要重新生成一个ID

3、创建FeatureRegister.cs用于Feature激活,反激活等操作

4、创建JOB的执行类。

5、注册feature C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm.exe -o installfeature -filename TimerJobsEHSS\feature.xml -force

6、Debug方式:附加OWSTIMER.EXE,注意:GAC的变化需要重启Windows SharePoint Services Timer服务

 

注意:分钟的执行默认是5分钟一次,Interval属性可以调整执行频率。 

 TimerJobs示例

 

Creating Custom Timer Jobs in Windows SharePoint Services 3.0

http://msdn.microsoft.com/en-us/library/cc406686.aspx

 

Video:

Creating, Deploying, and Debugging Custom Timer Jobs in Windows SharePoint Services 3.0

 

http://wm.microsoft.com/ms/msdn/office/2007OfficeVisualHowTos/WSS3CustomTimerJobs.wmv

 

SPSchedule Class

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spschedule.aspx

 

SPJobDefinition

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spjobdefinition.aspx

 

 

http://www.codeplex.com/wikipage?ProjectName=SPTimerJobAdmin&title=Home

相关文章:

  • 2022-02-13
  • 2022-02-05
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-06-13
猜你喜欢
  • 2022-01-15
  • 2021-11-15
  • 2021-10-03
  • 2021-09-20
  • 2021-06-17
  • 2021-12-29
相关资源
相似解决方案