PublishingPage.ScheduleEndNotificationInterval Property
Gets or sets the interval of time before end-of-schedule notifications are sent.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property ScheduleEndNotificationInterval As Integer
Get
Set
'Usage
Dim instance As PublishingPage
Dim value As Integer
value = instance.ScheduleEndNotificationInterval
instance.ScheduleEndNotificationInterval = value
public int ScheduleEndNotificationInterval { get; set; }
Property Value
Type: System.Int32
An integer specifying the end-of-schedule notification interval.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentException] | ScheduleEndInterval cannot be negative or greater than 99. |
[System.UnauthorizedAccessException] | The current user does not have sufficient permissions to perform this action. |
Remarks
The ScheduleEndNotificationInterval and ScheduleEndNotificationIntervalUnit properties determine the time prior to the EndDate that a notification e-mail ScheduleEndNotificationTimeSpan property is the actual span of time prior to the end date, and it is calculated based on the ScheduleEndNotificationInterval and ScheduleEndNotificationIntervalUnit properties.
If this property is equal to PublishingPage.DisabledInterval, then end date schedule notifications are disabled. Regardless of what interval is specified, schedule end notifications are disabled if there is no ScheduledItem.EndDate specified for the PublishingPage.To save changes after setting this property, call the Update method.
To set this value, the user must have both View and Edit permissions on the PublishingPage, View permissions to retrieve the page and to return any of its property values, and Edit permissions to change the value.