Creates a RecurrenceInfo that runs for a specified number of occurrences.
Namespace:
Mindscape.WpfElementsAssembly: Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)
Syntax
C# |
---|
public static RecurrenceInfo ToMaxOccurrences( DateTime start, TimeSpan duration, int maxOccurrences, IRecurrencePattern recurrencePattern ) |
Visual Basic (Declaration) |
---|
Public Shared Function ToMaxOccurrences ( _ start As DateTime, _ duration As TimeSpan, _ maxOccurrences As Integer, _ recurrencePattern As IRecurrencePattern _ ) As RecurrenceInfo |
Parameters
- start
- Type: System..::.DateTime
The start date and time of the recurrence.
- duration
- Type: System..::.TimeSpan
The duration of the ScheduleItem.
- maxOccurrences
- Type: System..::.Int32
The number of occurrences.
- recurrencePattern
- Type: Mindscape.WpfElements..::.IRecurrencePattern
The recurrence pattern.