Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Schedule property

SPJobDefinition.Schedule property

Gets or sets the schedule of the job definition.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPSchedule Schedule { get; set; }

Property value

Type: Microsoft.SharePoint.SPSchedule
An SPSchedule object.


The value that you attempted to set is a null reference (Nothing in Visual Basic).


The DateTime structure in the Time property of an SPOneTimeSchedule object specifies a year prior to 1900.


You are attempting to convert a one-time job to a recurring job, or a recurring job to a one-time job.

If you want the job to run immediately, call the RunNow() method.

© 2015 Microsoft