简体   繁体   English

将Outlook约会保存在资源日历中而无需通知

[英]Save Outlook appointment in Resource Calendar without notification

using EWS, creating an AppointmentItem and adding a resource too. 使用EWS,创建AppointmentItem并添加资源。 The Appointment get added to Resource Calendar and an email notification goes to Resource Inbox. 约会被添加到“资源日历”,并且电子邮件通知进入“资源收件箱”。

But i don't want any email notification just want to get added to Calendar. 但是我不希望任何电子邮件通知只想添加到日历中。

I tried using SendInvitationsMode.SendToNone but it then doesn't add in Calendar even. 我尝试使用SendInvitationsMode.SendToNone但是它甚至没有添加到Calendar中。

then i tried using 然后我尝试使用
Mailbox mbox = new Mailbox(user);
FolderId folder = new FolderId(WellKnownFolderName.Calendar, mbox);
appointment.Save(folder);
but then it send email notification too besides adding in Calendar. 但是除了添加日历外,它还会发送电子邮件通知。

So, What I want is: "get added in Calendar but don't send me notification". 因此,我想要的是:“添加到日历中,但不向我发送通知”。

SendInvitationsMode.SendToNone is the correct way to no add a notification. SendInvitationsMode.SendToNone是不添加通知的正确方法。

Try not sending to a folder, but to WellKnownFolderName.Calendar 尝试不发送到文件夹,而是发送到WellKnownFolderName.Calendar

appointment.Save(WellKnownFolderName.Calendar, SendInvitationsMode.SendToNone);

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

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