Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPSchedule class

Abstract base class that supports the different schedule types that are used in job definitions.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public abstract class SPSchedule

Use the Schedule property of the SPJobDefinition class to get the schedule for a job definition.

SharePoint Foundation job definitions can use the following schedule types:

SharePoint Foundation does not support extending the SPSchedule class.

The begin and end properties in classes that derive from SPSchedule specify a time window when a job should be started and have no effect on when the job finishes. The timer service will pick a random time between the begin and end and will start the job at that time. This feature is primarily used for resource-intensive jobs that run on multiple computers in the farm. The randomized start time ensures that they do not all start simultaneously, which could adversely affect server availability. To start the job at a precise time, the begin and end values for the schedule should be identical.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.