Initializes a new instance of the RecurrenceInfo class.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public RecurrenceInfo(
	DateTime startDate,
	TimeSpan startTime,
	TimeSpan duration,
	IRecurrencePattern recurrencePattern,
	RecurrenceEndType endType,
	DateTime endDate,
	int maxOccurrences
)
Visual Basic (Declaration)
Public Sub New ( _
	startDate As DateTime, _
	startTime As TimeSpan, _
	duration As TimeSpan, _
	recurrencePattern As IRecurrencePattern, _
	endType As RecurrenceEndType, _
	endDate As DateTime, _
	maxOccurrences As Integer _
)

Parameters

startDate
Type: System..::.DateTime
The start date of the recurrence.
startTime
Type: System..::.TimeSpan
The start time of day of the recurrence.
duration
Type: System..::.TimeSpan
The duration of the ScheduleItem.
recurrencePattern
Type: Mindscape.WpfElements..::.IRecurrencePattern
The recurrence pattern.
endType
Type: Mindscape.WpfElements..::.RecurrenceEndType
The end criterion for the recurrence.
endDate
Type: System..::.DateTime
The date on which the recurrence is to end (for RecurrenceEndType.EndBy).
maxOccurrences
Type: System..::.Int32
The number of occurrences (for RecurrenceEndType.EndAfter).

Remarks

This constructor is primarily for deserialisation purposes. The factory methods ToEndDate(DateTime, TimeSpan, DateTime, IRecurrencePattern), ToMaxOccurrences(DateTime, TimeSpan, Int32, IRecurrencePattern) and Forever(DateTime, TimeSpan, IRecurrencePattern) provide a simpler API for creating specific types of RecurrenceInfo.

See Also