Partilhar via


ScheduledItem Class

Provides a wrapper that includes scheduling-specific behavior for items in the SPListItem class.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Publishing.ScheduledItem
    Microsoft.SharePoint.Publishing.PublishingPage

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class ScheduledItem
'Usage
Dim instance As ScheduledItem
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class ScheduledItem

Remarks

A ScheduledItem item is visible on the published site only between the scheduled start date (StartDate) and end date (EndDate).

The ScheduledItem class wraps the SPListItem class. It also directly exposes the underlying SPListItem class through the ListItem property so that additional SPListItem and SPFile() functionality can be easily accessed.

This class can be instantiated by using the static GetScheduledItem method.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ScheduledItem Members

Microsoft.SharePoint.Publishing Namespace