Compartilhar via


PublishingPage.ScheduleEndNotificationIntervalUnit Property

Gets or sets the unit of time used for the EndDate schedule notification interval.

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

Syntax

'Declaration
Public Property ScheduleEndNotificationIntervalUnit As IntervalUnit
    Get
    Set
'Usage
Dim instance As PublishingPage
Dim value As IntervalUnit

value = instance.ScheduleEndNotificationIntervalUnit

instance.ScheduleEndNotificationIntervalUnit = value
public IntervalUnit ScheduleEndNotificationIntervalUnit { get; set; }

Property Value

Type: Microsoft.SharePoint.Publishing.IntervalUnit
An interval unit that specifies the unit of time for the interval.

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 prior to the EndDate that a notification e-mail is sent. The ScheduleEndNotificationTimeSpan property is the actual span of time prior to the EndDate, and it is calculated based on the ScheduleEndNotificationInterval and ScheduleEndNotificationIntervalUnit properties.

If this property is equal to IntervalUnit.Unspecified, then EndDate schedule notifications are disabled. Regardless of what interval is specified, schedule end notifications are disabled if there is no 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.

See Also

Reference

PublishingPage Class

PublishingPage Members

Microsoft.SharePoint.Publishing Namespace