Task.NextRunTimeAfter Method

Calculates the next time the task is scheduled to run after a given arbitrary time.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public Function NextRunTimeAfter ( _
    after As DateTime _
) As DateTime
'Usage
Dim instance As Task
Dim after As DateTime
Dim returnValue As DateTime

returnValue = instance.NextRunTimeAfter(after)
public DateTime NextRunTimeAfter(
    DateTime after
)

Parameters

Return Value

Type: System.DateTime
The next time the task is to run, or the DateTime.MinValue value if it is not scheduled to run.

Remarks

If the task is not to run at all, perhaps because it is disabled, this method returns the DateTime.MinValue value.

See Also

Reference

Task Class

Task Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace