单个iCalendar事件何时会有多个重复规则?

时间:2017-10-15 13:58:11

标签: icalendar

我使用ical.NET库来处理C#中的iCalendar事件。

我注意到一个日历事件可以有多个重复规则。这是什么情况?

CalendarEvent类扩展了RecurringComponent类,该类具有以下属性:

public virtual IList<RecurrencePattern> RecurrenceRules { get; set; }

为什么这是一个清单?我认为它将是一个RecurrencePattern元素,而不是列表。

1 个答案:

答案 0 :(得分:2)

最有可能出于向后兼容的原因:

RFC2445支持多个RRULE和EXRULE:https://tools.ietf.org/html/rfc2445#section-4.6.1

  

以下是可选的,                   ;并且可能不止一次出现

            attach / attendee / categories / comment /
            contact / exdate / exrule / rstatus / related /
            resources / rdate / rrule / x-prop
废弃RFC2445的RFC5545删除了该功能,因为它未被大多数客户端实现或执行不当。 https://tools.ietf.org/html/rfc5545#section-3.6.1

  

                    ;以下是可选的,                     ;但不应超过一次。                     ;                     rrule /

请注意RFC2445在删除它时如何使用EXRULE概念。 https://tools.ietf.org/html/rfc5545#appendix-A

的完整更改列表