Partilhar via


SPMonthlySchedule.NextOccurrence Method

Returns the next occurrence of the schedule based on the specified date and time.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Function NextOccurrence ( _
    dt As DateTime _
) As DateTime
'Usage
Dim instance As SPMonthlySchedule
Dim dt As DateTime
Dim returnValue As DateTime

returnValue = instance.NextOccurrence(dt)
public override DateTime NextOccurrence(
    DateTime dt
)

Parameters

  • dt
    Type: System.DateTime

    A System.DateTime structure that specifies the date and time.

Return Value

Type: System.DateTime
A System.DateTime value that represents the next occurrence.

See Also

Reference

SPMonthlySchedule Class

SPMonthlySchedule Members

Microsoft.SharePoint Namespace