【发布时间】:2012-07-19 02:26:13
【问题描述】:
EWS 在正文中使用默认的“时间”文本创建约会。请看下图:
我想知道是否可以通过某种方式删除或隐藏此文本。
这是我使用 EWS 托管 API 创建约会的代码
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1, TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"));
service.Credentials = new WebCredentials("ews_calendar", PASSWORD, "acme");
service.Url = new Uri("https://acme.com/EWS/Exchange.asmx");
Appointment newAppointment = new Appointment(service);
newAppointment.Subject = "Test Subject";
newAppointment.Body = "Test Body";
newAppointment.Start = new DateTime(2012, 07, 19, 17, 00, 0);
newAppointment.End = newAppointment.Start.AddMinutes(30);
newAppointment.RequiredAttendees.Add("first.last@acme.com");
// create new appointment
newAppointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);
【问题讨论】:
-
之后是否可以按照this answer 中的说明更改正文?
-
@blahdiblah 该链接与阅读或更新现有约会有关。在上面的示例中,我正在尝试创建新约会。不知道为什么,但 EWS 在发送通知之前会自动添加自己的文本。
-
是的,我意识到这不是您要寻找的内容,但认为在创建约会正文后立即更改它可能就足够了。 EWS 添加自己的文本绝对是奇怪的,真是痛苦。
标签: exchangewebservices outlook-2010