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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub ScheduleStart ( _
startDate As DateTime, _
approvalComment As String _
)
'Usage
Dim instance As SPFile
Dim startDate As DateTime
Dim approvalComment As String
instance.ScheduleStart(startDate, approvalComment)
public void ScheduleStart(
DateTime startDate,
string approvalComment
)
Parameters
startDate
Type: System.DateTimeA DateTime value that specifies when to approve the document.
approvalComment
Type: System.StringThe explanation why the item was approved. This method stores this value in the SPListItem.ModerationInformation.Comment property.
Remarks
This method calls ScheduleStart(DateTime, Boolean, String) with startDate, true, and approvalComment.