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.DateTime

    The date and time when the document is automatically approved.

Remarks

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

See Also

Reference

SPFile Class

SPFile Members

ScheduleStart Overload

Microsoft.SharePoint Namespace

Approve

ScheduleEnd

ModerationInformation