public static final class Recurrence.WeeklyPattern extends Recurrence.IntervalPattern implements IComplexPropertyChangedDelegate
Recurrence.DailyPattern, Recurrence.DailyRegenerationPattern, Recurrence.IntervalPattern, Recurrence.MonthlyPattern, Recurrence.MonthlyRegenerationPattern, Recurrence.RelativeMonthlyPattern, Recurrence.RelativeYearlyPattern, Recurrence.WeeklyPattern, Recurrence.WeeklyRegenerationPattern, Recurrence.YearlyPattern, Recurrence.YearlyRegenerationPattern
Constructor and Description |
---|
WeeklyPattern()
Initializes a new instance of the WeeklyPattern class. specific days
a specific number of weeks after the previous one.
|
WeeklyPattern(Date startDate,
int interval,
DayOfTheWeek... daysOfTheWeek)
Initializes a new instance of the WeeklyPattern class.
|
Modifier and Type | Method and Description |
---|---|
void |
complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed.
|
DayOfTheWeekCollection |
getDaysOfTheWeek()
Gets the list of the days of the week when occurrences happen.
|
Calendar |
getFirstDayOfWeek() |
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
internalValidate()
Validates this instance.
|
void |
internalWritePropertiesToXml(EwsServiceXmlWriter writer)
Write property to XML.
|
void |
setFirstDayOfWeek(Calendar value) |
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
getInterval, setInterval
getEndDate, getFieldValueOrThrowIfNull, getNumberOfOccurrences, getStartDate, hasEnd, isRegenerationPattern, neverEnds, setEndDate, setNumberOfOccurrences, setStartDate, writeElementsToXml
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
public WeeklyPattern()
public WeeklyPattern(Date startDate, int interval, DayOfTheWeek... daysOfTheWeek) throws ArgumentOutOfRangeException
startDate
- the start dateinterval
- the intervaldaysOfTheWeek
- the days of the weekArgumentOutOfRangeException
- the argument out of range exceptionpublic String getXmlElementName()
getXmlElementName
in class Recurrence
public void internalWritePropertiesToXml(EwsServiceXmlWriter writer) throws Exception
internalWritePropertiesToXml
in class Recurrence.IntervalPattern
writer
- the writerException
- the exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class Recurrence.IntervalPattern
reader
- the readerException
- the exceptionpublic void internalValidate() throws Exception
internalValidate
in class Recurrence
Exception
public DayOfTheWeekCollection getDaysOfTheWeek()
public Calendar getFirstDayOfWeek() throws ServiceValidationException
ServiceValidationException
public void setFirstDayOfWeek(Calendar value)
public void complexPropertyChanged(ComplexProperty complexProperty)
IComplexPropertyChangedDelegate
complexPropertyChanged
in interface IComplexPropertyChangedDelegate
complexProperty
- the complex propertyCopyright © 2012–2015 Microsoft. All rights reserved.