Nuget version: Ical.Net 2.2.30
observed behavior: Status sets as OOF
expected behavior: Status should set as BUSY
BEGIN:VCALENDAR
PRODID:-//Apple Inc.//iCal 5.0.2//EN
VERSION:2.0
BEGIN:VEVENT
DESCRIPTION:Test
DTEND:20170324T104500Z
DTSTAMP:20170324T093907Z
DTSTART:20170324T103000Z
SEQUENCE:0
STATUS:Confirmed
SUMMARY:Test
UID:FC97A241-EC79-4848-8842-3920C58EE520
END:VEVENT
END:VCALENDAR
事件创建正常,繁忙的时间检索不错,但如果我的Outlook客户端上有我的icloud帐户,则显示状态为OOF而不是忙。
答案 0 :(得分:2)
我找到了解决方案。
解决方案:需要手动添加X-MICROSOFT-CDO-BUSYSTATUS属性。
event.AddProperty("X-MICROSOFT-CDO-BUSYSTATUS", "BUSY");
谢谢!