Posts

Showing posts from September, 2012

Custom SharePoint Timer Job

Know more about Timer Job A timer job runs in a specific Windows service for SharePoint Server. Timer jobs also perform infrastructure tasks for the Timer service, such as clearing the timer job history and recycling the Timer service; and tasks for Web applications, such as sending e-mail alerts. A timer job contains a definition of the service to run and specifies how frequently the service is started. The SharePoint 2010 Timer service (SPTimerv4) runs timer jobs. Many features in SharePoint Server rely on timer jobs to run services according to a schedule. For custom timer job creation need to follow the below steps or procedures: - Inherit class from SPJobDefintion (using Microsoft.SharePoint.Administration) - Creatig Timer Job in feature activated event receiver as per specifications as shown in below code //Create class derived from SPJonDefinition Class  class ListTimerJob : SPJobDefinition     {          public ListTimerJob()             : base()         {