PublishingPage.ScheduleEndNotificationTimeSpan property

Gets the span of time prior to the PublishingPage object's EndDate that the end-of-schedule e-mail notification is sent.

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

public TimeSpan ScheduleEndNotificationTimeSpan { get; }

Property value

Type: System.TimeSpan
Timespan that represents the time period, before the PublishingPage object's EndDate, that the end-of-schedule e-mail notification is sent.

ExceptionCondition
[System.UnauthorizedAccessException]

The current user does not have sufficient permissions to perform this action.

The ScheduleEndNotificationInterval and ScheduleEndNotificationIntervalUnit properties determine the time before the EndDate that a notification e-mail is sent. This e-mail reminds the user that the EndDate is approaching. The related ScheduleEndNotificationTimeSpan property is the actual span of time prior to the EndDate, which is calculated based on the ScheduleEndNotificationInterval and ScheduleEndNotificationIntervalUnit properties.

The TimeSpan that is specified is truncated to the nearest day. A value of TimeSpan.MaxValue indicates that the EndDate for schedule notifications are disabled.

The user must have View permissions on the PublishingPage to retrieve it and return its property values.

Show: