Share via


ScheduledItem.Schedule method

Schedules a ListItem object to automatically be approved (start) and be unpublished (end) on specified dates.

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

Syntax

'Declaration
Public Sub Schedule ( _
    approvalComment As String _
)
'Usage
Dim instance As ScheduledItem
Dim approvalComment As String

instance.Schedule(approvalComment)
public void Schedule(
    string approvalComment
)

Parameters

  • approvalComment
    Type: System.String

    Represents the comments to describe the transaction of the list item when it becomes a published version.

Remarks

Scheduling a ListItem indicates that it has already been effectively approved. The same permissions required for scheduling are required for approval.

The StartDate and EndDate values are used to determine the publication schedule. If the start date is earlier than now, the ListItem is published immediately. Otherwise, it is scheduled to publish at a future date. If the end date is specified, the ListItem is scheduled to unpublish at a future date.

See also

Reference

ScheduledItem class

ScheduledItem members

Microsoft.SharePoint.Client.Publishing namespace