Initializes a new instance of the RecurrenceInfo class.

Namespace: Mindscape.SilverlightElements
Assembly: Mindscape.SilverlightElements (in Mindscape.SilverlightElements.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

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

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.SilverlightElements..::..IRecurrencePattern
The recurrence pattern.
endType
Type: Mindscape.SilverlightElements..::..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