class RecurrencePattern
Describes the frequency by which a recurring event repeats.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/outlook/mail/recurrence_pattern.py
5 - 37
moderate
Purpose
Describes the frequency by which a recurring event repeats.
Source Code
class RecurrencePattern(ClientValue):
"""Describes the frequency by which a recurring event repeats."""
def __init__(
self,
day_of_month=None,
days_of_week=None,
first_day_of_week=None,
index=None,
interval=None,
month=None,
pattern_type=None,
):
"""
:param int day_of_month: The day of the month on which the event occurs. Required if type is absoluteMonthly
or absoluteYearly.
:param list[str] days_of_week: A collection of the days of the week on which the event occurs
:param str first_day_of_week: The first day of the week
:param str index: Specifies on which instance of the allowed days specified in daysOfWeek the event occurs,
counted from the first instance in the month.
:param int interval: The number of units between occurrences, where units can be in days, weeks, months,
or years, depending on the type. Required.
:param int month: The month in which the event occurs. This is a number from 1 to 12.
:param str pattern_type: The recurrence pattern type: daily, weekly, absoluteMonthly, relativeMonthly,
absoluteYearly, relativeYearly
"""
self.dayOfMonth = day_of_month
self.daysOfWeek = StringCollection(days_of_week)
self.firstDayOfWeek = first_day_of_week
self.index = index
self.interval = interval
self.month = month
self.type = pattern_type
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Parameter of type ClientValue
Return Value
Returns unspecified type
Class Interface
Methods
__init__(self, day_of_month, days_of_week, first_day_of_week, index, interval, month, pattern_type)
Purpose: :param int day_of_month: The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly. :param list[str] days_of_week: A collection of the days of the week on which the event occurs :param str first_day_of_week: The first day of the week :param str index: Specifies on which instance of the allowed days specified in daysOfWeek the event occurs, counted from the first instance in the month. :param int interval: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required. :param int month: The month in which the event occurs. This is a number from 1 to 12. :param str pattern_type: The recurrence pattern type: daily, weekly, absoluteMonthly, relativeMonthly, absoluteYearly, relativeYearly
Parameters:
day_of_month: Parameterdays_of_week: Parameterfirst_day_of_week: Parameterindex: Parameterinterval: Parametermonth: Parameterpattern_type: Parameter
Returns: None
Required Imports
from office365.runtime.client_value import ClientValue
from office365.runtime.types.collections import StringCollection
Usage Example
# Example usage:
# result = RecurrencePattern(bases)
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class PatternedRecurrence 62.1% similar
-
class RecurrenceRange 51.1% similar
-
class Reminder 38.2% similar
-
class PatternBasedExtractor 37.1% similar
-
class DateTimeFormat 35.0% similar