Table of Contents

Class Recurrence

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents a recurrence pattern, as used by Appointment and Task items.

public abstract class Recurrence : ComplexProperty
Inheritance
Recurrence
Derived
Inherited Members

Properties

EndDate

Gets or sets the date after which the recurrence ends. Setting EndDate resets NumberOfOccurrences.

public DateTime? EndDate { get; set; }

Property Value

DateTime?

HasEnd

Gets a value indicating whether the pattern has a fixed number of occurrences or an end date.

public bool HasEnd { get; }

Property Value

bool

NumberOfOccurrences

Gets or sets the number of occurrences after which the recurrence ends. Setting NumberOfOccurrences resets EndDate.

public int? NumberOfOccurrences { get; set; }

Property Value

int?

StartDate

Gets or sets the date and time when the recurrence start.

public DateTime StartDate { get; set; }

Property Value

DateTime

Methods

IsSame(Recurrence)

Compares two objects by converting them to JSON and comparing their string values

public bool IsSame(Recurrence otherRecurrence)

Parameters

otherRecurrence Recurrence

object to compare to

Returns

bool

true if the objects serialize to the same string

NeverEnds()

Sets up this recurrence so that it never ends. Calling NeverEnds is equivalent to setting both NumberOfOccurrences and EndDate to null.

public void NeverEnds()