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)

public void ScheduleStart(
	DateTime startDate,
	bool setModerationStatus
)

Parameters

startDate
Type: System.DateTime

The date and time when the document is automatically approved.

setModerationStatus
Type: System.Boolean

true if the ModerationInformation property of the item is set to Scheduled; otherwise, false.

This method calls ScheduleStart(DateTime, Boolean, String) with startDate, setModerationStatus, and string.empty.

Show: