共用方式為


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

Remarks

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

See Also

Reference

SPFile Class

SPFile Members

ScheduleStart Overload

Microsoft.SharePoint Namespace

Approve

ScheduleEnd

ModerationInformation