SPFile.ScheduleStart Method (DateTime, Boolean)
Schedules the automatic approval of a document in a moderated library at the specified date and time, and optionally leaves the moderation status of the item unchanged.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub ScheduleStart ( _
startDate As DateTime, _
setModerationStatus As Boolean _
)
'Usage
Dim instance As SPFile
Dim startDate As DateTime
Dim setModerationStatus As Boolean
instance.ScheduleStart(startDate, setModerationStatus)
public void ScheduleStart(
DateTime startDate,
bool setModerationStatus
)
Parameters
startDate
Type: System.DateTimeThe date and time when the document is automatically approved.
setModerationStatus
Type: System.Booleantrue if the ModerationInformation property of the item is set to Scheduled; otherwise, false.
Remarks
This method calls ScheduleStart(DateTime, Boolean, String) with startDate, setModerationStatus, and string.empty.