SPSPJobDefinition Timer Job
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属性可以调整执行频率。
Creating Custom Timer Jobs in Windows SharePoint Services 3.0
http://msdn.microsoft.com/en-us/library/cc406686.aspx
Video:
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