Microsoft.Activities.Extensions |
Occurance..::..Next Method (DateTime, TimeSpan) |
Occurance Class See Also Send Feedback |
Returns the date and time of the next occurance from the specific time to the time on one the next matching day or the same day if no days are provided.
Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)
Syntax
C# |
---|
public static DateTime Next( DateTime fromTime, TimeSpan occuranceTime ) |
Visual Basic |
---|
Public Shared Function Next ( _ fromTime As DateTime, _ occuranceTime As TimeSpan _ ) As DateTime |
Visual C++ |
---|
public: static DateTime Next( DateTime fromTime, TimeSpan occuranceTime ) |
Parameters
- fromTime
- Type: System..::..DateTime
The from Time.
- occuranceTime
- Type: System..::..TimeSpan
The time of day for the occurence
Return Value
the timespan from now until the next occurance of the time on a given day.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | The time string is invalid |