SPJobDefinition.Schedule property
SharePoint 2013
Gets or sets the schedule of the job definition.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | The value that you attempted to set is null. |
| ArgumentOutOfRangeException | The DateTime structure in the Time property of an SPOneTimeSchedule object specifies a year prior to 1900. |
| SPException | You are attempting to convert a one-time job to a recurring job, or a recurring job to a one-time job. |