使用Microsoft.Exchange.WebServices将与会者添加到Office 365 [英] Adding attendees to Office 365 using Microsoft.Exchange.WebServices

查看:77
本文介绍了使用Microsoft.Exchange.WebServices将与会者添加到Office 365的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows c#应用程序上工作.我正在使用Microsoft.Exchange.WebServices在Office 365上创建新的日历项.当我将任何与会者添加到日历项并保存到Office 365时,会自动发送与会者邀请.我不想将会议要求发送给与会者,只想添加他们.有什么办法吗?

I am working on windows c# application. I am creating new calendar entries on Office 365 by using Microsoft.Exchange.WebServices When I add any attendee to calendar item and save to office 365, invitation to attendee is sent automatically. I dont want to send meeting req to attendees and want only to add them. Is there any way to do that?

ObjAppointment.RequiredAttendees.Add(p_calendarProperties.invitees);

预先感谢

推荐答案

为避免向与会者发送会议请求,请在保存约会时指定"SendToNone" SendInvitationsMode值.

To avoid sending meeting request to attendees, specify the "SendToNone" SendInvitationsMode value when saving your appointment.

ObjAppointment.Save(SendInvitationsMode.SendToNone);

请参阅Microsoft文档: http://msdn.microsoft.com/zh-CN/library/microsoft.exchange.webservices.data.sendinvitationsmode(v=exchg.80).aspx

See Microsoft documentation: http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.sendinvitationsmode(v=exchg.80).aspx

这篇关于使用Microsoft.Exchange.WebServices将与会者添加到Office 365的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆