Search
Recurrence Members
Constructors Properties Methods
 


Defines recurrence patterns for items scheduled to repeat over and over again.

The following tables list the members exposed by the Recurrence type.

 Public Constructors

  Name Description

Recurrence

Initializes a new instance of the Recurrence class.

 Public Properties

  Name Description

daily

Gets or sets the type of daily recurrence.

day

Gets or sets a value indicating the day of the week when the event occurs.

dayOfMonth

Gets or sets the day of the month when the event occurs.

days

Gets or sets the number of days between two consecutive occurrences of the same event.

daysOfWeek

Gets or sets the days of the week when the event occurs.

end

Gets orsets the last time when the event occurs.

endDate

Gets or sets the end date of the Recurrence.

exceptions

Gets a list with all Recurrence exceptions.

interval

Gets or sets the interval of Recurrence.

master

Gets the master item for the recurrence.

monthly

Gets or sets the type of monthly recurrence.

monthOfYear

Gets or sets the month of the year when the event occurs.

months

Gets or sets the number of months between two consecutive occurrences of the same event.

numOccurrences

Gets or sets how many times a recurring event should occur.

occurrence

Gets or sets on which occurrence of the week within the month the event occurs.

pattern

Gets or sets the recurrence pattern.

startDate

Gets or sets the date and time of the event's first occurrence.

weeks

Gets or sets the number of weeks between two consecutive occurrences of the event.

yearly

Gets or sets the type of yearly recurrence.

 Public Methods

  Name Description

applyPattern

Copies the property values of the specified Recurrence object asvalues for the properties of this Recurrence object.This method behaves similarly to the clone method but does not create a new object.

associateWith

Associates the Recurrence with the specified item. If the supplied reference is null,the recurrence is detached from the currently associated master.

clearExceptions

Removes all exceptions of this Recurrence.

clone

Creates an exact copy of this Recurrence object.

fromJson

Overloaded.  

generateItems

Creates occurrence items for this Recurrence in the specified date range.

getEndDate

Returns the end date for this Recurrence. The end date is calculated based on the specified repeat number if RecurrenceEnd is set to NumOccurrences.

getExceptions

Gets a list with all Recurrence exceptions.

getOccurrence

Returns the occurrence with the specified index.

loadFromXml

Loads the Recurrence content from an XML element.

markException

Marks the specified item as an exception in the Recurrence pattern.

removeException

Removes the exception associated with the specified item from the recurrence.

samePatternAs

Determines whether two Recurrence objects define the same recurrence pattern.

saveToXml

Saves the Recurrence content into an XML element.

toJson

Overloaded.  

toLocalizedString

Returns a localized string that represents this Recurrence using the specified date and time formatting info and localization information.

 See Also