Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPWeeklySchedule Class
Collapse the table of content
Expand the table of content

SPWeeklySchedule Class

Represents a weekly schedule for a job definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

public sealed class SPWeeklySchedule : SPDailySchedule

The BeginDayOfWeek and EndDayOfWeek properties in this class 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.
Show:
© 2015 Microsoft