简体   繁体   English

禁用使用 EWS 创建的约会提醒

[英]Disable reminder on an appointment created with EWS

When I create an appointment with EWS, Outlook displays a reminder 15 minutes before the event.当我使用 EWS 创建约会时,Outlook 会在活动开始前 15 分钟显示提醒。 I want to disable this, and there is an option for it:我想禁用它,并且有一个选项:

appointment.IsReminderSet = false;

but it simply does not work.但它根本不起作用。 In Outlook the event displays as "Reminder: None", but the reminder is sent nonetheless 15 minutes prior.在 Outlook 中,事件显示为“提醒:无”,但提醒仍然提前 15 分钟发送。

提醒看起来设置为无

I also tried setting the ReminderMinutesBeforeStart property to -1 (which caused Outlook to not be able to display the invitation) or 0 and ReminderDueBy to past dates, but none of this helped, the reminder is still sent.我还尝试将ReminderMinutesBeforeStart属性设置为 -1(这导致 Outlook 无法显示邀请)或 0 并将ReminderDueBy设置为过去的日期,但这些都没有帮助,提醒仍然发送。

How can I really disable the reminder?我怎样才能真正禁用提醒?

Turns out it is not enough to set IsReminderSet to false because the sender user's setting can overwrite it.事实证明,将IsReminderSet设置为false是不够的,因为发件人用户的设置可以覆盖它。 You have to search for Options > Calendar > Default reminders and turn that off too:您必须搜索选项>日历>默认提醒并将其关闭:

在 Outlook 中关闭默认提醒

You need to set this in Outlook for the sender user AND also use the option for the appointment described in the question:您需要在 Outlook 中为发件人用户设置此项,并使用问题中描述的约会选项:

appointment.IsReminderSet = false;

Only one is not enough, both needs to be set.只有一个是不够的,两个都需要设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM