Microsoft.Activities.Extensions |
Occurance..::..Interval Method (TimeSpan, IEnumerable<(Of <(<'DayOfWeek>)>)>) |
Occurance Class See Also Send Feedback |
Returns the interval from the specific time to the next occurance of 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 TimeSpan Interval( TimeSpan occuranceTime, IEnumerable<DayOfWeek> occuranceDays ) |
Visual Basic |
---|
Public Shared Function Interval ( _ occuranceTime As TimeSpan, _ occuranceDays As IEnumerable(Of DayOfWeek) _ ) As TimeSpan |
Visual C++ |
---|
public: static TimeSpan Interval( TimeSpan occuranceTime, IEnumerable<DayOfWeek>^ occuranceDays ) |
Parameters
- occuranceTime
- Type: System..::..TimeSpan
The time of day for the occurence
- occuranceDays
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'DayOfWeek>)>)>
A list of the days of the week when the time may occur.
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 |