SPFile.ScheduleStart method (DateTime, String)

Schedules automatic approval of a document in a moderated library at the specified date and time with the specified explanation for the approval.

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

public void ScheduleStart(
	DateTime startDate,
	string approvalComment
)

Parameters

startDate
Type: System.DateTime

A DateTime value that specifies when to approve the document.

approvalComment
Type: System.String

The explanation why the item was approved. This method stores this value in the SPListItem.ModerationInformation.Comment property.

This method calls ScheduleStart(DateTime, Boolean, String) with startDate, true, and approvalComment.

Show: