Share via


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)

Syntax

'Declaration
Public ReadOnly Property ScheduleEndNotificationTimeSpan As TimeSpan
    Get
'Usage
Dim instance As PublishingPage
Dim value As TimeSpan

value = instance.ScheduleEndNotificationTimeSpan
public TimeSpan ScheduleEndNotificationTimeSpan { get; }

Property Value

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

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

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

Remarks

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.

See Also

Reference

PublishingPage Class

PublishingPage Members

Microsoft.SharePoint.Publishing Namespace