Creates a RecurrenceInfo that runs for a specified number of occurrences.

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

Syntax

C#
public static RecurrenceInfo ToMaxOccurrences(
	DateTime start,
	TimeSpan duration,
	int maxOccurrences,
	IRecurrencePattern recurrencePattern
)
Visual Basic
Public Shared Function ToMaxOccurrences ( _
	start As DateTime, _
	duration As TimeSpan, _
	maxOccurrences As Integer, _
	recurrencePattern As IRecurrencePattern _
) As RecurrenceInfo
Visual C++
public:
static RecurrenceInfo^ ToMaxOccurrences(
	DateTime start, 
	TimeSpan duration, 
	int maxOccurrences, 
	IRecurrencePattern^ recurrencePattern
)

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

Return Value

A RecurrenceInfo representing the specified recurrence schedule.

See Also